-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: inconsistent vendoring #47575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
what changes if you run |
You should run This just add line '## explicitly' before the required module in vendor/modules.txt. |
@seankhliao if I add |
@hitzhangjie how I do it:
what do you suggest to do differently? |
That error message is not consistent with the Is it possible that your |
can you provide a diff of |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, it does
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I run docker build with Kaniko on kubernetes.
My dockerfile:
What did you expect to see?
Build is success
What did you see instead?
github.com/caarlos0/env/v6@v6.5.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
...
To ignore the vendor directory, use -mod=readonly or -mod=mod.
To sync the vendor directory, run:
go mod vendor
The text was updated successfully, but these errors were encountered: