CircleCI Ubuntu 14.04构建镜像具有多个gopath值。

huangapple go评论71阅读模式
英文:

Circleci Ubuntu 14.04 build image has multiple gopath values

问题

CircleCI Ubuntu 14.04构建镜像的GOPATH环境变量具有以下值:

/home/ubuntu/.go_workspace:/usr/local/go_workspace

并且没有GOROOT环境变量。这是一个错误吗?

英文:

The CircleCI Ubuntu 14.04 build image has the following value for the GOPATH env var:

/home/ubuntu/.go_workspace:/usr/local/go_workspace

and no GOROOT env var. Is this an error?

答案1

得分: 3

GOROOT是一个环境变量,用于指定Go二进制发行版的安装位置。如果Go安装在默认文件夹中,您不需要声明这个环境变量。根据CIRCLE CI文档,Go安装在默认文件夹中,所以您不应该遇到任何问题。

英文:

GOROOT is the enviroment variable that specify where the go binary distribution is installed, if is installed in the default folder you are not required to declare this enviroment variable.
And, according to CIRCLE CI docs Go is installed in the default folder so you shouldn't have any problem.

huangapple
  • 本文由 发表于 2016年11月1日 19:52:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/40359505.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定