File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ WORKDIR /app/src/github.com/bugsnag/bugsnag-go/v2
1111# Ensure subsequent steps are re-run if the GO_VERSION variable changes
1212ARG GO_VERSION
1313
14+ # Required for go 1.11 as modules are not enabled by default
15+ ENV GO111MODULE="on"
16+
1417# Get bugsnag dependencies using a conditional call to run go get or go install based on the go version
1518RUN if [[ $(echo -e "1.11\n $GO_VERSION\n 1.16" | sort -V | head -2 | tail -1) == "$GO_VERSION" ]]; then \
1619 echo "Version is between 1.11 and 1.16, running go get" ; \
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ WORKDIR /app/src/github.com/bugsnag/bugsnag-go/v2
1111# Ensure subsequent steps are re-run if the GO_VERSION variable changes
1212ARG GO_VERSION
1313
14+ # Required for go 1.11 as modules are not enabled by default
15+ ENV GO111MODULE="on"
16+
1417# Get bugsnag dependencies using a conditional call to run go get or go install based on the go version
1518RUN if [[ $(echo -e "1.11\n $GO_VERSION\n 1.16" | sort -V | head -2 | tail -1) == "$GO_VERSION" ]]; then \
1619 echo "Version is between 1.11 and 1.16, running go get" ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ WORKDIR /app/src/github.com/bugsnag/bugsnag-go/v2
1313# Ensure subsequent steps are re-run if the GO_VERSION variable changes
1414ARG GO_VERSION
1515
16+ # Required for go 1.11 as modules are not enabled by default
17+ ENV GO111MODULE="on"
18+
1619# Get bugsnag dependencies using a conditional call to run go get or go install based on the go version
1720RUN if [[ $(echo -e "1.11\n $GO_VERSION\n 1.16" | sort -V | head -2 | tail -1) == "$GO_VERSION" ]]; then \
1821 echo "Version is between 1.11 and 1.16, running go get" ; \
You can’t perform that action at this time.
0 commit comments