summaryrefslogtreecommitdiff
path: root/repo/go/go.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-18 15:47:07 +0100
committerdavidovski <david@davidovski.xyz>2023-05-18 15:47:07 +0100
commitb9fc4f41e38eaa6d27652d418b983d40d13ef82c (patch)
tree1928df6cb290b8411bcad275195f7f7b5941162d /repo/go/go.xibuild
parent0d37a1ef234c38b27faba43bc3a22f985d311deb (diff)
Fix go build for 1.20 and bump gomuks
Diffstat (limited to 'repo/go/go.xibuild')
-rw-r--r--repo/go/go.xibuild14
1 files changed, 3 insertions, 11 deletions
diff --git a/repo/go/go.xibuild b/repo/go/go.xibuild
index 585a2d0..62dfaa1 100644
--- a/repo/go/go.xibuild
+++ b/repo/go/go.xibuild
@@ -18,28 +18,20 @@ prepare () {
export TMPDIR=/tmp
tar -xvf $BOOTSTRAP.tbz
mv go-linux-amd64-bootstrap $BOOTSTRAP
+
+ git init .
}
build () {
- export sourceroot=$(pwd)
export GOARCH=amd64
export GOAMD64=v1 # make sure we're building for the right x86-64 version
export GOOS="linux"
- cd $BOOTSTRAP
- cd src
- echo "~~~~BUILDING BOOTSTRAP"
- CGO_ENABLED=0 ./make.bash -v || return 1
-
- cd $sourceroot
export GOROOT_BOOTSTRAP="$(pwd)/$BOOTSTRAP"
echo "~~~~BUILDING GOLANG"
cd src
- if [ ! -z "${GOROOT_BOOTSTRAP}" ]; then
- ./bootstrap.bash -v || return 1
- fi
- ./make.bash -v || reutrn 1
+ ./make.bash -v || return 1
cd ..
}