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
Description
With go1.18, I get
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