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' \