Go/gvm: Difference between revisions

From Fundamental Ramen
< Go
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
export GOROOT_BOOTSTRAP=$GOROOT
export GOROOT_BOOTSTRAP=$GOROOT


# install go 1.17 as build tool-chain for go1.23
# install go 1.17 as build tool-chain for go1.20
gvm install go1.17.13
gvm install go1.17.13
gvm use go1.17.13
gvm use go1.17.13
export GOROOT_BOOTSTRAP=$GOROOT
# install go 1.20 as build tool-chain for go1.23
gvm install go1.20.14
gvm use go1.20.14
export GOROOT_BOOTSTRAP=$GOROOT
export GOROOT_BOOTSTRAP=$GOROOT


# install go
# install go
gvm install 1.23
gvm install 1.23.9
</syntaxhighlight>
</syntaxhighlight>

Revision as of 12:03, 28 May 2025

https://github.com/moovweb/gvm

# before use gvm install
sudo apt-get install build-essential

# install go1.4 first as build tool-chain for go1.17
gvm install go1.4 -B
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT

# install go 1.17 as build tool-chain for go1.20
gvm install go1.17.13
gvm use go1.17.13
export GOROOT_BOOTSTRAP=$GOROOT

# install go 1.20 as build tool-chain for go1.23
gvm install go1.20.14
gvm use go1.20.14
export GOROOT_BOOTSTRAP=$GOROOT

# install go
gvm install 1.23.9