-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: Inconsistent vendoring detected. Please re-run "go mod vendor" #45103
Comments
What was the output when you ran |
and how was this vendor directory created / filled? it has things like |
@bcmills @seankhliao I did add some packages manually in vendor directory but my project was working accurately, even after running the "go mod vendor" it was saying on those packages that " xyz: package xyz is not in GOROOT (C:\GO\src\xyz) ". But every thing was going smooth and working. Inconsistent vendoring detected. Please re-run "go mod vendor". |
@mtalhasaleem502, In order for Package paths like See https://golang.org/doc/modules/managing-dependencies#unpublished. |
@bcmills @seankhliao Thank you so much I have completed successfully with your best support. I have learnt many things. "go mod vendor " was not working due to the addition of local packages manually in vendor directory. When I used the replace directives it started to work accurately. Again Thanks. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Faizii\AppData\Local\go-build
set GOENV=C:\Users\Faizii\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Faizii\Go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Faizii\Go;
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\GO
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\GO\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\Faizii\Go\src\c\chess\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\Faizii\AppData\Local\Temp\go-build578196042=/tmp/go-build -gno-record-gcc-switches
my_project.zip
What did you do?
After getting the any package with "go get " command or after changing the version of package in my go.mod file, then I used the "go mod vendor" it started to give the following error:
Inconsistent vendoring detected. Please re-run "go mod vendor".
See #39164 for more detail on this issue.
What did you expect to see?
I need to import the package and want to accessing its functionalities
What did you see instead?
Inconsistent vendoring detected. Please re-run "go mod vendor".
See #39164 for more detail on this issue.
The text was updated successfully, but these errors were encountered: