From 3cc8f77f6f768b0c336c7451d099bcad53325c0d Mon Sep 17 00:00:00 2001 From: tannevaled Date: Mon, 3 Aug 2026 13:43:40 +0200 Subject: [PATCH] github.com/buchgr/bazel-remote: new package A remote build cache for Bazel and other REAPI clients. Pure-Go build via go.dev; validated locally by building v2.6.2 and exercising the test. Co-Authored-By: Claude Opus 4.8 --- .../buchgr/bazel-remote/package.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/github.com/buchgr/bazel-remote/package.yml diff --git a/projects/github.com/buchgr/bazel-remote/package.yml b/projects/github.com/buchgr/bazel-remote/package.yml new file mode 100644 index 0000000000..dce78a2693 --- /dev/null +++ b/projects/github.com/buchgr/bazel-remote/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://github.com/buchgr/bazel-remote/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: buchgr/bazel-remote/releases + +provides: + - bin/bazel-remote + +build: + script: | + go build -v -ldflags="$LDFLAGS" -o bazel-remote . + mkdir -p "{{prefix}}"/bin + mv bazel-remote "{{prefix}}"/bin + + # gocache/gopath are not needed in the bottle + chmod -R u+w "$GOPATH" "$GOCACHE" + rm -rf "$GOPATH" "$GOCACHE" + dependencies: + go.dev: ^1.24 + env: + GOPATH: ${{prefix}}/gopath + GOCACHE: ${{prefix}}/gocache + GOFLAGS: -mod=mod + LDFLAGS: + - -s -w + linux: + # -buildmode=pie: match distro Go binaries, avoid a segfault seen with + # some glibc/loader combos (docker-library/golang#402) + LDFLAGS: + - -buildmode=pie + +test: + bazel-remote --help 2>&1 | grep -q 'remote build cache'