-
Notifications
You must be signed in to change notification settings - Fork 489
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
bump compose-go version to v1.17.0 to fix issue with depends_on #1971
Conversation
Ok so after discussing it seems Looking at docker/compose#10804 (comment), the compose file does not seem complete. Can you post a simple one to repro so we can look at this? Thanks |
Looks like behavior has changed for smth else 👀 https://github.com/docker/buildx/actions/runs/5678427149/job/15388687707?pr=1971#step:6:771
|
@crazy-max the change was introduce in version The repro case:
Compose file
Command to reproduce |
@crazy-max unit tests have been fixed, since the introduction of |
f020d8b
to
52100f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include
attribute was introduce and bake doesn't support it for now.
Can we have a test case for this?
require.Equal(t, ".", *m["app1"].Context) | ||
require.Equal(t, "Dockerfile", *m["app2"].Dockerfile) | ||
require.Equal(t, ".", *m["app2"].Context) | ||
require.Equal(t, "/src/bake", *m["app2"].Context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixes the test but don't think it's right. We are not matching the HCL/JSON implementation anymore 😕.
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
…e paths by compose-go Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
52100f9
to
b01693f
Compare
Rebased and added extra test for |
I was working on the integration tests and when building a remote bake definition we are just reading default files or ones provided with Lines 174 to 200 in 50fbdd8
I think after reading the content of the definition, we can check if it's a compose file, parse it, return the list of |
Actually this is not just |
@glours Recognize this patch is several supply chain steps away from docker/compose#10804, so understand if you can't commit to an ETA, but any chance you can ballpark it and/or cross-link the next step (e.g. does |
Could we get this fix into new release earlier than 0.12.0 milestone? |
Actually this is preventing me from upgrading docker installation for like 2 months now. I could drop the depends_on after generating bake config from compose file with some sed command, but that's really not sustainable. So if we're not getting update any time soon - can I somehow get a build artefact with latest state of the development or with this incompatibility patched? |
@austindrenski identified that the new attribute
depends_on.required
isn't supported by bake, as this one is mandatory and setup by default in Compose, all the compose configuration usingdepends_on
won't be supported by bake.Updating
compose-go
version fixed the problemA reproduction case is available in the comment linked above