Skip to content

Usage of go mod is not compatible with go1.18 #6586

@zhsj

Description

@zhsj

Description

With go1.18, I get

go: inconsistent vendoring in /home/zhsj/go/src/github.com/containerd/containerd:
        github.com/containerd/containerd: is marked as replaced in vendor/modules.txt, but not replaced in go.mod

        To ignore the vendor directory, use -mod=readonly or -mod=mod.
        To sync the vendor directory, run:
                go mod vendor

Go upstream thinks it should be fixed in containerd instead. Ref golang/go#51285

Steps to reproduce the issue

Describe the results you received and expected

No error

What version of containerd are you using?

main

Any other relevant information

No response

Show configuration if it is related to CRI plugin.

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions