Skip to content

Commit

Permalink
Created conditional for GO GET or GO INSTALL per version
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpaisley committed Feb 7, 2024
1 parent 660c9ea commit 025349a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion features/fixtures/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ ENV GOPATH /app
COPY testbuild /app/src/github.com/bugsnag/bugsnag-go
WORKDIR /app/src/github.com/bugsnag/bugsnag-go/v2

RUN go install ./...
# RUN go get ./...
RUN if [[ "$GO_VERSION" == "1.11" || "$GO_VERSION" == "1.12" || "$GO_VERSION" == "1.13" || "$GO_VERSION" == "1.14" || "$GO_VERSION" == "1.15" || "$GO_VERSION" == "1.16" ]]; then \
go get ./...; \
else \
go install ./...; \
fi


# Copy test scenarios
COPY ./app /app/src/test
Expand Down

0 comments on commit 025349a

Please sign in to comment.