package codex // The arm64 builds of the pinned release, for tests only. The certified // runner target is linux/amd64: ExecutableSHA256 and CodeModeHostSHA256 // are the only pins a launcher or a release trusts, and no release ships // with the ones below. These are the same official release's // aarch64-unknown-linux-musl binaries (rust-v0.165.0), so a test that // runs the real program can run on an arm64 CI machine. const ( ExecutableSHA256Arm64 = "b32ece31af06440da980b733fb8fefdd1f193439595fda84096f1caaceec543f" CodeModeHostSHA256Arm64 = "fd7a4a1f29871fb0015c19ad2f885ef6a878244643260703e17663418695aa14" ) // ReleasePins returns the digests of the official 0.165.0 binaries built // for goarch: the certified pins on amd64, the arm64 build's on arm64. A // test hands it runtime.GOARCH to check the binaries on the machine it // runs on. ok is false where there is no pinned build. func ReleasePins(goarch string) (executable, codeModeHost string, ok bool) { switch goarch { case "amd64": return ExecutableSHA256, CodeModeHostSHA256, true case "arm64": return ExecutableSHA256Arm64, CodeModeHostSHA256Arm64, true } return "", "", false }