Browse Source

Update go

master
mid-kid 22 hours ago
parent
commit
96ef312b18
  1. 7
      go/build_go.sh

7
go/build_go.sh

@ -14,8 +14,13 @@ mkdir -p "go$version_go"
tar xf "$dir_download/go$version_go.src.tar.gz" -C "go$version_go" --strip-components 1 tar xf "$dir_download/go$version_go.src.tar.gz" -C "go$version_go" --strip-components 1
cd "go$version_go" cd "go$version_go"
# Create dummy git repo
# This avoids problems if a parent git repo is found but owned by a different user
mkdir -p .git/objects .git/refs
echo 'ref: refs/heads/master' > .git/HEAD
# Build and install # Build and install
(cd src; GOROOT_BOOTSTRAP="$PWD/../../install-go$version_boot" ./make.bash) (cd src; GOROOT_BOOTSTRAP="$PWD/../../install-go$version_boot" ./make.bash -v)
find src -type f \( ! -name '*.go' \ find src -type f \( ! -name '*.go' \
-a ! -name '*.c' \ -a ! -name '*.c' \

Loading…
Cancel
Save