You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install the Dagger Go SDK, one has to run the following commands:
go get go.dagger.io/dagger@<version if needed>go mod edit -replace=github.com/docker/docker=github.com/docker/[email protected]+incompatiblego mod tidy
This is 1) verbose, and 2) unusual for Go developers. Therefore it will result in a bad DX. We should boil this down to just go get.
Solution
The solution unfortunately is complex, because it is caused by a conflict between the Moby/Docker and Go projects, respectively. There are four ways we can solve this:
Convince Go to revert their decision to break the established tagging convention for go projects. Estimate: impossible.
Convince Docker to change their tagging convention to match Go's new tagging mandate. Estimate: unlikely.
Convince Go and Docker to find a middle ground. Estimate: unlikely.
Solve the problem downstream with a private fork + custom tooling. Estimate: annoying but doable.
changed the title [-]Investigate possible fixes to need for go mod replace when using go sdk[/-][+]Installing Go SDK is not intuitive[/+]on Oct 17, 2022
Convince Docker to change their tagging convention to match Go's new tagging mandate. Estimate: unlikely.
Update from today's community call: it sounds like they're doing this after all by switching to regular semver!
However we'd still need to wait for a new release of moby/buildkit to be tagged. Maybe that won't be too much trouble.
We can't easily bump to an untagged moby/buildkit either; I tried this and ended up needing to add a replace line to stop the Go CLI from "bumping" (really rewinding) the dependency, which brings us back to square one. Context: #3560 (comment)
The long-term fix, to me, is to bite the bullet and switch to an external engine so the SDK doesn't depend on any of this at all.
Activity
[-]Investigate possible fixes to need for go mod replace when using go sdk[/-][+]Installing Go SDK is not intuitive[/+]vito commentedon Oct 27, 2022
Update from today's community call: it sounds like they're doing this after all by switching to regular semver!
However we'd still need to wait for a new release of
moby/buildkitto be tagged. Maybe that won't be too much trouble.We can't easily bump to an untagged
moby/buildkiteither; I tried this and ended up needing to add areplaceline to stop the Go CLI from "bumping" (really rewinding) the dependency, which brings us back to square one. Context: #3560 (comment)The long-term fix, to me, is to bite the bullet and switch to an external engine so the SDK doesn't depend on any of this at all.
MDr164 commentedon Nov 24, 2022
Looks like it has been changed already according to https://github.com/dagger/dagger/pull/3962/files#diff-06f64a45e1c277b0b72114e68d6c0936525c046b63a5d969b53e4a60a6e553adL9
So should this issue be closed as well then?
vito commentedon Nov 24, 2022
Yep - closing, thanks for checking in!