Open geropl opened 1 year ago
This is actually caused by the "dynamic existence" of installer/preview:docker
. It only exists when the right arguments are passed at linking stage.
Options:
components:all
dynamic.Doesn't require a leeway change, but significantly increases the complexity of our build set up because we have to duplicate conditions.
For example (notice the ?) at the end:
deps:
- installer/preview:docker?
This is actually caused by the "dynamic existence" of installer/preview:docker. It only exists when the right arguments are passed at linking stage
In the dynamic component (here) I had ensured that I created a package with the same name in either case as an attempt to avoid this situation. So I thought that there might be a bug in Leeway where dynamic components weren't evaluated in all conditions. I tried to make a minimal example here but I haven't been able to reproduce the bug yet.
This is actually caused by the "dynamic existence" of installer/preview:docker. It only exists when the right arguments are passed at linking stage
In the dynamic component (here) I had ensured that I created a package with the same name in either case as an attempt to avoid this situation.
That's smart! Actually in that case I'd prefer not to merge #103, just to not add this complexity needlessly.
So I thought that there might be a bug in Leeway where dynamic components weren't evaluated in all conditions. I tried to make a minimal example here but I haven't been able to reproduce the bug yet.
I just tried to reproduce using the steps described by Gero. I have not been able to reproduce this either.
Random thought: this might be some odd dependency on the order of a map. Just thinking that because that's the only thing introducing non-determinism in the linking process.
Bug description
leeway exec
cannot find the dynamic packageinstall/preview:docker
(when it is building the dependency tree?) and fails with:Steps to reproduce
cd components/server
yarn watch
Expected behavior
It should execute yarn builds instead
Example repository
No response
Anything else?
No response