Skip to content
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

inconsistent vendoring #59

Closed
hakras opened this issue Feb 13, 2020 · 7 comments
Closed

inconsistent vendoring #59

hakras opened this issue Feb 13, 2020 · 7 comments

Comments

@hakras
Copy link

hakras commented Feb 13, 2020

After following the instructions and running make build, I get the following:

==> Checking that code complies with gofmt requirements...
go build -o terraform-provider-infoblox -mod=vendor
go: inconsistent vendoring in /usr/local/go/src/github.com/infobloxopen/terraform-provider-infoblox:
go.mod requires github.com/infobloxopen/terraform-provider-infoblox but vendor/modules.txt does not include it.
run 'go mod tidy; go mod vendor' to sync
make: *** [build] Error 1

I have attempted running go mod tidy; go mod vendor, but the error persists.

@saiprasannasastry
Copy link
Contributor

what version of go are you using?
can you give me your go env output from same working directory,

@hakras
Copy link
Author

hakras commented Feb 21, 2020

Hello. Sorry for the delay. Here you go:
go version go1.13.7 linux/amd64
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/usr/local/go/src/github.com/infobloxopen/terraform-provider-infoblox/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build947280568=/tmp/go-build -gno-record-gcc-switches"

@saiprasannasastry
Copy link
Contributor

use go version go1.12.7 linux/amd64

@saiprasannasastry
Copy link
Contributor

There is some issue with 1.13.x
golang/go#34657
dont know if its fixed are not. Try with 1.12.x, i just tested with 1.12.7 and it worked

@linqing2004
Copy link

golang-1.14-1.el7.x86_64 also has the problem.

@somashekhar
Copy link
Contributor

Are you still facing this issue ?

@somashekhar
Copy link
Contributor

Closing it since we are not facing the issue at present and do reach out to us if you still face the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants