Hi David, and Cameleers trying to follow this while David and myself geek out :)
On Tue, Sep 7, 2021 at 1:12 PM Zoran Regvart <zo...@regvart.com> wrote: > On Wed, Sep 1, 2021 at 8:42 AM David Jencks <david.a.jen...@gmail.com> wrote: > > > > With both the CI build for my PR and locally, `yarn build-all` is building > > the UI after the main build command. Obviously this doesn’t work. > > Can you point to the CI build that does that so I can have a look? > > > Can someone point to a situation in which the UI is built before it is > > used? Any ideas why yarn is picking this dysfunctional workspace build > > order? > > The `build-all` runs `yarn workspaces foreach --topological-dev run > build`, the `--topological-dev`[1] should guarantee proper order given > that the `antora-ui-camel` is a devDependency of > `apache-camel-website`. Or am I missing something? On my end this was fixed by reverting this change: https://github.com/apache/camel-website/pull/617/commits/d70796f3b680e9986ca149444d35c163e01ff9de#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L36 i.e. for the `--topological-dev` to function the `antora-ui-camel` dependency needs to be `workspace:antora-ui-camel` not `./antora-ui-camel`, the project relative range is experimental and folk are advised not to use it at the moment[1] zoran [1] https://yarnpkg.com/features/workspaces/#workspace-ranges-workspace -- Zoran Regvart