shithub: 9scripts

Download patch

ref: 1d4038ddd4dc9e36cdcbc1b2bbce540dfc506ca4
parent: 4cabf34eaf238518dba8dc8bc7670d8d014b8e13
author: glenda <glenda@9front.local>
date: Mon Nov 23 00:00:42 EST 2020

fixed go script

--- a/install-go.rc
+++ b/install-go.rc
@@ -1,11 +1,12 @@
 #! /bin/rc
 cd /tmp
 hget http://www.9legacy.org/download/go/go1.14.1-plan9-amd64-bootstrap.tbz | bunzip2 -c | tar x
-mkdir -p /sys/go
-cd /sys/go
+mkdir -p /sys/lib/go
+cd /sys/lib/go/
 hget https://golang.org/dl/go1.15.2.src.tar.gz | gunzip -c | tar x
+cd /sys/lib/go/go/src
 GOROOT_BOOTSTRAP=/tmp/go-plan9-amd64-bootstrap
-GOROOT=/sys/lib/go/amd64-1.15.2
+GOROOT=/sys/lib/go/go
 
 make.rc
-cp /sys/lib/go/amd64-1.15.2/bin/* /$objtype/bin
+cp /sys/lib/go/go/bin/* /$objtype/bin