Skip to content

[23.0.0-beta] go.sum and vendor/ tree currently mismatch go.mod #44614

@paralin

Description

@paralin

Description

Running "go mod vendor" also fails due to a missing line in go.sum.

Errors when running "go build -mod=vendor" without running "go mod tidy":

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

Reproduce

  1. Run go build -mod=vendor ./cmd/dockerd

Expected behavior

Previous releases build correctly without any changes using go build -mod=vendor.

docker version

N/A

docker info

N/A

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.status/0-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions