Skip to content

cmd/go: Inconsistent vendoring detected. Please re-run "go mod vendor" #45103

@mtalhasaleem502

Description

@mtalhasaleem502

What version of Go are you using (go version)?

$ go version
go version go1.15.7 

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.modules

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions