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

Docker build fails #3106

Closed
kaushiksriram100 opened this issue Mar 10, 2020 · 2 comments
Closed

Docker build fails #3106

kaushiksriram100 opened this issue Mar 10, 2020 · 2 comments

Comments

@kaushiksriram100
Copy link

kaushiksriram100 commented Mar 10, 2020

Verions: 0.10.3 and 0.11.1

When I run the docker build from the existing source code, I get an error.

docker build . -t ubercadence/server:0.10.3 --build-arg TARGET=auto-setup

compiling cadence-cassandra-tool with OS: linux, ARCH: amd64
go build -i -o cadence-cassandra-tool cmd/tools/cassandra/main.go
build command-line-arguments: cannot load github.com/uber/cadence/.gen/go/history: import lookup disabled by -mod=readonly
make: *** [Makefile:123: cadence-cassandra-tool] Error 1
The command '/bin/sh -c CGO_ENABLED=0 make copyright cadence-cassandra-tool cadence-sql-tool cadence cadence-server' returned a non-zero code: 2
mbp-008814:cadence skaushik$ 

And if I remove the ENV GOFLAGS="-mod=readonly" then I get

go build -i -o cadence-cassandra-tool cmd/tools/cassandra/main.go
build command-line-arguments: cannot load github.com/uber/cadence/.gen/go/history: malformed module path "github.com/uber/cadence/.gen/go/history": leading dot in path element
make: *** [Makefile:123: cadence-cassandra-tool] Error 1
The command '/bin/sh -c CGO_ENABLED=0 make copyright cadence-cassandra-tool cadence-sql-tool cadence cadence-server' returned a non-zero code: 2
@wxing1292
Copy link
Contributor

@meiliang86 seems that go tool chain now enforce (never seen any warning before) some new rule: golang/go#34992

@kaushiksriram100
Copy link
Author

I was able to use a little older version of GO. 0.12 for now.

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

2 participants