-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin and install go from go.mod version (#352)
This include a super low tech mechanism not docker multistage either dockerized golang, it just download a golang tarball and install it under repo. Signed-off-by: Quique Llorente <[email protected]>
- Loading branch information
Showing
4 changed files
with
41 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -xe | ||
|
||
destination=$1 | ||
version=$(grep "^go " go.mod |awk '{print $2}') | ||
tarball=go$version.linux-amd64.tar.gz | ||
url=https://dl.google.com/go/ | ||
|
||
mkdir -p $destination | ||
curl -L $url/$tarball -o $destination/$tarball | ||
tar -xvf $destination/$tarball -C $destination |