From 96ef312b188ce4ead31536ac3cc1a553b5d54131 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Tue, 21 Jan 2025 22:27:08 +0100 Subject: [PATCH] Update go --- go/build_go.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/go/build_go.sh b/go/build_go.sh index c0be05b..708d700 100755 --- a/go/build_go.sh +++ b/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 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 -(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' \ -a ! -name '*.c' \