oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package codex
2
3// The arm64 builds of the pinned release, for tests only. The certified
4// runner target is linux/amd64: ExecutableSHA256 and CodeModeHostSHA256
5// are the only pins a launcher or a release trusts, and no release ships
6// with the ones below. These are the same official release's
7// aarch64-unknown-linux-musl binaries (rust-v0.165.0), so a test that
8// runs the real program can run on an arm64 CI machine.
9const (
10 ExecutableSHA256Arm64 = "b32ece31af06440da980b733fb8fefdd1f193439595fda84096f1caaceec543f"
11 CodeModeHostSHA256Arm64 = "fd7a4a1f29871fb0015c19ad2f885ef6a878244643260703e17663418695aa14"
12)
13
14// ReleasePins returns the digests of the official 0.165.0 binaries built
15// for goarch: the certified pins on amd64, the arm64 build's on arm64. A
16// test hands it runtime.GOARCH to check the binaries on the machine it
17// runs on. ok is false where there is no pinned build.
18func ReleasePins(goarch string) (executable, codeModeHost string, ok bool) {
19 switch goarch {
20 case "amd64":
21 return ExecutableSHA256, CodeModeHostSHA256, true
22 case "arm64":
23 return ExecutableSHA256Arm64, CodeModeHostSHA256Arm64, true
24 }
25 return "", "", false
26}
27