-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.13: [Bug]: Cyclic dependency when using different build target based on deploy mode #4603
Comments
We might be able to allow referencing the action modes without making a dependency on the resolution, but the better solution will be parameterized actions, which has a design draft already. In the meantime, I'd suggest making two separate builds with the different stages, instead of referencing the dependency in a single build. |
@edvald interesting idea to make two different builds! I'll try that. Thank you. |
Here is a working workaround using your suggestion:
I wasn't able to use |
Another example of syncing compiled languages without the problem described in this issue, but with a rather significant caveat: if you switch between sync deployment and normal deployment, you will rebuild the image. That isn't great - if/when we figure out a proper solution for the problem discussed in this issue thread, we should definitely convert that example to use that solution instead as well - but could work as a workaround for some users. |
#4616 was fixed and |
Garden Bonsai (0.13) Bug
When using "sync" deploy mode it is necessary for compiled languages to use a different build target, because you need the tools to compile the code which you don't need without sync mode.
Current Behavior
Expected behavior
I'd like an easy way of doing this without an error as it's a quite common use case.
Reproducible example
Workaround
Something like
can be used as a workaround.
Suggested solution(s)
Not sure how to solve this in a good way. Maybe the deploys with sync mode enabled should be just a list and globally available from any actions.
Additional context
Your environment
garden version
0.13.2The text was updated successfully, but these errors were encountered: