mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 23:36:12 +00:00
Since Go 1.8 users no longer need to have GOPATH set in their environment for the Go tool chain to work. If GOPATH is set, Go will use it. Otherwise it defaults to ~/go on linux. As most users store their code in ~/go, they don't bother setting GOPATH any more. virtcontainers-setup.sh, in its current form, fails for those users, as it requires GOPATH to be set. This commit fixes the issue by calling go env "GOPATH" to determine the correct location of the user's go code. go env "GOPATH" will always return the correct location, whether GOPATH is set, or not. Fixes: #63 Signed-off-by: Mark Ryan <mark.d.ryan@intel.com> |
||
---|---|---|
.ci | ||
cc-runtime@532740cc7c | ||
cli | ||
runv@299f4e6493 | ||
vendor | ||
virtcontainers | ||
.gitignore | ||
.gitmodules | ||
.pullapprove.yml | ||
.travis.yml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
Gopkg.lock | ||
Gopkg.toml | ||
LICENSE | ||
Makefile | ||
README.md |