vendor: run go mod tidy and go mod vendor#44615
Conversation
Run "go mod tidy" and "go mod vendor" to fix the (currently broken) go.sum file and the vendor/ tree. Fixes errors when running "go mod vendor": go: inconsistent vendoring in docker-engine-: cloud.google.com/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod cloud.google.com/go/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod cloud.google.com/go/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod code.cloudfoundry.org/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod [snip] To ignore the vendor directory, use -mod=readonly or -mod=mod. To sync the vendor directory, run: go mod vendor Fixes moby#44614 Signed-off-by: Christian Stewart <[email protected]>
|
The reason you're running into this is that this repository is not yet a go module, as the versioning and package name are not compatible with Go's conventions; adding a we use a closing this because of that, but feel free to continue the conversation |
|
@thaJeztah Previous releases build correctly with Please fix this so that we don't have to change our entire build tooling in Buildroot just for this package. |
|
Previous releases didn't use the |
|
@thaJeztah That causes a couple more issues:
... overall this causes a bit of a nightmare on our end. |
|
@thaJeztah Seems like setting Why can't it be the way it was before, which worked fine & played nice with the go mod infrastructure? |
|
Does it work if you remove the |
|
@thaJeztah That works & is a reasonable workaround. Thanks. |
Run "go mod tidy" and "go mod vendor" to fix the (currently broken) go.sum file and the vendor/ tree.
Fixes errors when running
go build -mod=vendorFixes #44614