mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 02:30:59 -05:00
upgrade go v1.21.1
This commit is contained in:
parent
c2b00566d0
commit
7f23c0bd5f
1 changed files with 2 additions and 2 deletions
|
@ -12,14 +12,14 @@ DIR=$(mktemp -d)
|
||||||
trap "rm -fr $DIR" EXIT
|
trap "rm -fr $DIR" EXIT
|
||||||
|
|
||||||
function dependency_go() {
|
function dependency_go() {
|
||||||
go_version="1.21.0.linux-amd64" # Set the desired Go version here
|
go_version="1.21.1.linux-amd64" # Set the desired Go version here
|
||||||
|
|
||||||
if ! which go > /dev/null ; then
|
if ! which go > /dev/null ; then
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y -qq wget tar
|
apt-get install -y -qq wget tar
|
||||||
wget --quiet "https://go.dev/dl/go$go_version.tar.gz"
|
wget --quiet "https://go.dev/dl/go$go_version.tar.gz"
|
||||||
tar zxf "go$go_version.tar.gz"
|
tar zxf "go$go_version.tar.gz"
|
||||||
export PATH="$PATH:$(pwd)/go/bin"
|
export PATH="$(pwd)/go/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue