Skip to content

Commit a1e8e68

Browse files
committed
Fix build with go 1.11
1 parent 4277bcb commit a1e8e68

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

features/fixtures/app/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1212
ARG 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
1518
RUN if [[ $(echo -e "1.11\n$GO_VERSION\n1.16" | sort -V | head -2 | tail -1) == "$GO_VERSION" ]]; then \
1619
echo "Version is between 1.11 and 1.16, running go get"; \

features/fixtures/autoconfigure/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1212
ARG 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
1518
RUN if [[ $(echo -e "1.11\n$GO_VERSION\n1.16" | sort -V | head -2 | tail -1) == "$GO_VERSION" ]]; then \
1619
echo "Version is between 1.11 and 1.16, running go get"; \

features/fixtures/net_http/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1414
ARG 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
1720
RUN if [[ $(echo -e "1.11\n$GO_VERSION\n1.16" | sort -V | head -2 | tail -1) == "$GO_VERSION" ]]; then \
1821
echo "Version is between 1.11 and 1.16, running go get"; \

0 commit comments

Comments
 (0)