# git hget http://9legacy.org/9legacy/tools/git >$home/bin/rc/git chmod +x $home/bin/rc/git # bootstrap from sources git clone -b go1.4.3 https://go.googlesource.com/go /tmp/go1.4 cd /tmp/go1.4 hget http://9legacy.org/go/patch/syscall-exec.diff | ape/patch -p1 cd src make.rc GOROOT_BOOTSTRAP=/tmp/go1.4 # bootstrap from binaries (1.18) hget -o /tmp/go1.18.3-plan9-amd64-bootstrap.tbz http://9legacy.org/download/go/go1.18.3-plan9-amd64-bootstrap.tbz cd /tmp tar xf go1.18.3-plan9-amd64-bootstrap.tbz GOROOT_BOOTSTRAP=/tmp/go-plan9-amd64-bootstrap # build amd64 git clone https://go.googlesource.com/go /tmp/go cd /tmp/go cd src all.rc bind -a /tmp/go/bin /bin