mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 05:49:05 +00:00
96c49775c085f69b5876628030f45efd861f3dac
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>
Description
Languages
Rust
58.4%
Go
24.4%
Shell
10%
RPC
5.3%
Makefile
1%
Other
0.8%