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

build-230502.0

Compare
Choose a tag to compare
@ernado ernado released this 02 May 18:44
· 3 commits to main since this release
e257b03

Release

1.20.4

File name Kind Size SHA256
go1.20.4.linux-riscv64.tar.gz Archive 154MB 490a0a17c16d93b3b18451b1c47b77c5a726df19a6520df9e221a6f70d0a1d06
go-linux-riscv64-bootstrap.tbz Bootstrap 88MB 07250f324aefe6445ce92966bc70794488bd52f565bfe986ea3e5d58a613e10c
go1.20.4.src.tar.gz Source 24MB 9f34ace128764b7a3a4b238b805856cc1b2184304df9e5690825b0710f4202d6

Download

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

Verify

echo "490a0a17c16d93b3b18451b1c47b77c5a726df19a6520df9e221a6f70d0a1d06 go1.20.4.linux-riscv64.tar.gz" | sha256sum --check

Install

sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.20.4.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-230502.0/go1.20.4.linux-riscv64.tar.gz.asc"

Verify the signature:

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