Skip to content

Commit

Permalink
Merge pull request #6 from andrewslotin/module_aware_go_get
Browse files Browse the repository at this point in the history
Initialize a new dummy module before downloading the package
  • Loading branch information
andrewslotin authored Mar 21, 2022
2 parents 68c5013 + 1b50802 commit bfc19ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:alpine
FROM golang:1.18-alpine

COPY entrypoint.sh /entrypoint.sh

Expand Down
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ fi
export GO111MODULE=on
export GOPROXY="$INPUT_GOPROXY"

go get -d "$PACKAGE@$VERSION"
mkdir dummy
cd dummy
go mod init dummy
go get "$PACKAGE@$VERSION"

0 comments on commit bfc19ec

Please sign in to comment.