Conversation
|
cc @robmry |
There was a problem hiding this comment.
Oh, thank you! I was about to have a look at this one ... but only got as far as realising I should've updated compose-spec's schema/compose-spec.json in compose-spec/compose-spec#552, I'll raise a new PR for that. (Also for EnableIPv4 in compose-spec/compose-spec#551, but that's not merged yet.)
LGTM - although perhaps it's worth adding to full-example.yml / full-struct_test.go?
|
@robmry we use a bot to sync schema changes made in compose-go into the spec |
|
Ah, got it! Thank you. |
|
adding support for this in docker/compose is a bit challenging as we can't get API 1.48 from any tag, and depending on |
I expect we'll create a 28.x branch from master, with a release candidate label, in the next week or two ... but it'd be good to find the problems sooner rather than later. Would it be possible to give it an early run in a PR that's not mergeable until the tag's available? |
|
@robmry I've tried to setup a test branch to build with docker/docker@master and check things work as expected, but hen I get some weird dependency downgrades that break everything: I guess this is because last know tag on docker/docker@master is |
|
Oh, I see - thank you. |
|
Oh! go modules pseudo-version-halucination striking again! So the official recommendation from the Go folks is to just willy-nilly tag some commits as In the end, go module should not hallucinate versions for anything untagged, and consider it “you want YOLO? here you go!” But the ugly workaround to achieve that without them changing, is to add a replace; Or using go mod edit -replace=github.com/docker/docker=github.com/docker/docker@masterAfter you added the replace, you can run go mod tidyAnd git diff
diff --git a/go.mod b/go.mod
index c5d2118..6e8bffc 100644
--- a/go.mod
+++ b/go.mod
@@ -26,3 +26,5 @@ require (
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
golang.org/x/sys v0.1.0 // indirect
)
+
+replace github.com/docker/docker => github.com/docker/docker v27.0.2-0.20250123194108-433e9a50ce7b+incompatible |
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
implement compose-spec/compose-spec#552