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

Fix integration_test script for go env #222

Merged
merged 1 commit into from
Aug 24, 2021

Conversation

chenyukang
Copy link
Collaborator

For those who upgraded Go but without setting the right go env (just like me).
Run script will get this error:

yukang@mango:~/youki$  ./integration_test.sh
CGO_ENABLED=0 go build -installsuffix cgo -tags "" -ldflags "-X main.gitCommit=59cdde06764be8d761db120664020f0415f36045 -X main.version=0.9.0" -o runtimetest ./cmd/runtimetest
go: cannot find main module, but found Godeps/Godeps.json in /home/yukang/youki/integration_test/src/github.com/opencontainers/runtime-tools
        to create a module there, run:
        go mod init
make: *** [Makefile:18: runtimetest] Error 1

This PR will fix it.

@utam0k utam0k merged commit 25496f0 into youki-dev:main Aug 24, 2021
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

Successfully merging this pull request may close these issues.

2 participants