You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 14, 2020. It is now read-only.
This change adds an '--go-path' option for overriding the default
GOPATH setting. Normally GOPATH is set to some directory in /tmp, so
go get will download the project and its dependencies. This is good
for isolation and reproducibility, but inconvenient. Overriding GOPATH
with --go-path option allows user to reuse already downloaded project
and its dependencies to create ACI. Another upside is creating ACI
from a local version of a project without pushing changes to
repository.
Copy file name to clipboardExpand all lines: goaci.go
+8-4
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
package main
2
2
3
3
// TODO(jonboulle): allow user to add assets to the ACI
4
-
// TODO(jonboulle): support user-specified GOPATHs/local packages. Right now we pull down a fresh copy of the specified package every time. This is better in terms of isolation and reproducibility, but inconvenient.
5
4
// TODO(jonboulle): add git SHA as a label in the image manifest
6
5
// TODO(jonboulle): support passing user-supplied arguments to `go get`? this might be tricky as we need to set a lot ourselves, and what if they conflict?
7
6
// TODO(jonboulle): support multiple executables?
@@ -58,6 +57,7 @@ func main() {
58
57
execOptsStringVector
59
58
goDefaultBinaryDescstring
60
59
goBinaryOptstring
60
+
goPathOptstring
61
61
)
62
62
63
63
// Find the go binary
@@ -70,9 +70,10 @@ func main() {
70
70
goDefaultBinaryDesc="Go binary to use (default: whatever go in $PATH)"
0 commit comments