-
Notifications
You must be signed in to change notification settings - Fork 160
Use Go modules #1235
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
Use Go modules #1235
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y curl devscripts equivs git | ||
|
|
||
| ENV GOPROXY=https://proxy.golang.org|direct | ||
| ENV GO111MODULE=off | ||
| ENV GO111MODULE=on | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure, according to https://go.dev/ref/mod
This isn't really the same as the dynamic choice of |
||
| ENV GOPATH=/go | ||
| ENV GOTOOLCHAIN=local | ||
| ENV PATH=$PATH:/usr/local/go/bin:$GOPATH/bin | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -68,7 +68,17 @@ ln -snf ${RPM_BUILD_DIR}/src/engine /go/src/github.com/docker/docker | |||||
|
|
||||||
| pushd ${RPM_BUILD_DIR}/src/engine | ||||||
| TMP_GOPATH="/go" hack/dockerfile/install/install.sh tini | ||||||
| VERSION=%{_origversion} PRODUCT=docker hack/make.sh dynbinary | ||||||
|
|
||||||
| # Determine Go module mode based on file presence | ||||||
| if [ -f vendor.mod ]; then | ||||||
| GOMOD=off | ||||||
| elif [ -f go.mod ]; then | ||||||
| GOMOD=on | ||||||
| else | ||||||
| echo "No go.mod or vendor.mod found in engine directory" | ||||||
|
||||||
| echo "No go.mod or vendor.mod found in engine directory" | |
| echo "No go.mod or vendor.mod found in engine directory" >&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other echos inside this file do not output to stderr, so I'm keeping it the same.
Uh oh!
There was an error while loading. Please reload this page.