diff --git a/tools/cloud-setup.sh b/tools/cloud-setup.sh index be105dd3b..076c2ecd5 100755 --- a/tools/cloud-setup.sh +++ b/tools/cloud-setup.sh @@ -12,8 +12,6 @@ GOFUMPT_VERSION=v0.11.0 BUF_VERSION=v1.71.0 PROTOC_GEN_GO_VERSION=v1.36.11 PROTOC_GEN_GO_GRPC_VERSION=v1.6.2 -# bd must be the CGO build of the github-relationship-sync fork (beads PR 5971). -BEADS_REF=refs/pull/5971/head SUDO= [ "$(id -u)" -eq 0 ] || SUDO=sudo @@ -55,13 +53,19 @@ go install "github.com/bufbuild/buf/cmd/buf@$BUF_VERSION" go install "google.golang.org/protobuf/cmd/protoc-gen-go@$PROTOC_GEN_GO_VERSION" go install "google.golang.org/grpc/cmd/protoc-gen-go-grpc@$PROTOC_GEN_GO_GRPC_VERSION" -src=$(mktemp -d) -git -C "$src" init -q -git -C "$src" fetch -q --depth 1 https://github.com/gastownhall/beads "$BEADS_REF" -git -C "$src" checkout -q FETCH_HEAD -(cd "$src" && CGO_ENABLED=1 go build -tags gms_pure_go \ - -ldflags="-X main.Build=$(git rev-parse --short HEAD)" -o "$GOBIN/bd" ./cmd/bd) -rm -rf "$src" +curl -fsSL https://raw.githubusercontent.com/gastownhall/beads/main/scripts/install.sh | bash +bd setup claude + +# Commit and PR attribution stays off, matching local settings. +mkdir -p "$HOME/.claude" +settings="$HOME/.claude/settings.json" +[ -s "$settings" ] || echo '{}' >"$settings" +node -e ' +const fs = require("fs"), p = process.argv[1]; +const s = JSON.parse(fs.readFileSync(p, "utf8")); +s.attribution = { ...s.attribution, commit: "", pr: "", sessionUrl: false }; +fs.writeFileSync(p, JSON.stringify(s, null, 2) + "\n"); +' "$settings" profile=/etc/profile.d/archie-go.sh echo 'export PATH="/usr/local/go/bin:$HOME/go/bin:$PATH"' | $SUDO tee "$profile" >/dev/null