Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

build-230613.0

Compare
Choose a tag to compare
@ernado ernado released this 13 Jun 04:45
· 2 commits to main since this release
26519bf

Release

1.20.5

File name Kind Size SHA256
go1.20.5.linux-riscv64.tar.gz Archive 154MB b85a931b7059f4312bc07beff9addc69cd0ab6d8e6d26d27660bda19d7441a26
go-linux-riscv64-bootstrap.tbz Bootstrap 88MB 4451fba04b9f4b556eeebc80f8a62804aa4116de39e983b1403e94171e0df726
go1.20.5.src.tar.gz Source 24MB 9a15c133ba2cfafe79652f4815b62e7cfc267f68df1b9454c6ab2a3ca8b96a88

Download

wget "https://github.com/go-riscv/go/releases/download/build-230613.0/go1.20.5.linux-riscv64.tar.gz"

Verify

echo "b85a931b7059f4312bc07beff9addc69cd0ab6d8e6d26d27660bda19d7441a26 go1.20.5.linux-riscv64.tar.gz" | sha256sum --check

Install

sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.20.5.linux-riscv64.tar.gz

Add to PATH

You can create /etc/profile.d/go.sh.

sudo nano /etc/profile.d/go.sh

Write following contents:

#!/bin/bash
# sets envs for golang
if [ -z "$GOPATH" ]; then
  export GOROOT="/usr/local/go"
  export GOPATH="/go"
  export PATH="$GOPATH/bin:$GOROOT/bin:$PATH"
fi

Save and make it executable:

sudo chmod +x /etc/profile.d/go.sh

You can check it without creating new shell session:

source /etc/profile.d/go.sh
go version

Verify signature

Import the public key:

gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '943040B9817AC4C7'

Download the signature:

wget "https://github.com/go-riscv/go/releases/download/build-230613.0/go1.20.5.linux-riscv64.tar.gz.asc"

Verify the signature:

gpg --batch --verify go1.20.5.linux-riscv64.tar.gz.asc go1.20.5.linux-riscv64.tar.gz