This repository was archived by the owner on Mar 14, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010! go /** /cacheprog.go
1111! go /** /go.mod
12+ ! go /** /go.sum
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ set -euo pipefail
3+
24curl -LO https://go.dev/dl/go1.25.5.linux-amd64.tar.gz
35tar -xzf go1.25.5.linux-amd64.tar.gz
46rm go1.25.5.linux-amd64.tar.gz
@@ -7,6 +9,11 @@ rm go1.25.5.linux-amd64.tar.gz
79CGO_ENABLED=0 ./go/bin/go build -o cacheprog cacheprog.go
810
911# Pre-build standard library cache
10- export GOCACHE=$PWD /cache
11- mkdir -p $GOCACHE
12+ export GOCACHE=" $PWD /cache"
13+ mkdir -p " $GOCACHE "
1214CGO_ENABLED=0 ./go/bin/go build std
15+
16+ # Pre-download selected golang.org/x modules for offline builds.
17+ export GOPATH=" $PWD /gopath"
18+ mkdir -p " $GOPATH "
19+ CGO_ENABLED=0 ./go/bin/go mod download
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ set -euo pipefail
23
34cp /piston/packages/go/1.25.5/go.mod ./go.mod
5+ cp /piston/packages/go/1.25.5/go.sum ./go.sum
6+
47export GOCACHEPROG=" /piston/packages/go/1.25.5/cacheprog /piston/packages/go/1.25.5/cache"
5- CGO_ENABLED=0 go build -o binary * .go && \
8+ CGO_ENABLED=0 go build -o binary * .go
69chmod +x binary
Original file line number Diff line number Diff line change 11module piston
22
33go 1.25.5
4+
5+ require golang.org/x/text v0.34.0
Original file line number Diff line number Diff line change 1+ golang.org/x/text v0.34.0 /go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA =
You can’t perform that action at this time.
0 commit comments