Download this file
| 1 | package containment |
| 2 | |
| 3 | // BubblewrapSHA256 is the pinned bubblewrap 0.11.0 build for linux/amd64, |
| 4 | // the only target a release runs on. It is the digest in |
| 5 | // internal/release/manifest.json. |
| 6 | const BubblewrapSHA256 = "0dfa36b98ada69568aaaa741fe210d2150a1441433bd13c428137d6a972a959c" |
| 7 | |
| 8 | // BubblewrapSHA256Arm64 is the same Debian package's arm64 build, so the |
| 9 | // namespace tests can run on an arm64 CI machine. No release ships for it. |
| 10 | const BubblewrapSHA256Arm64 = "ef2316fc741885e6d7b422661ea60c20cbe07ec7eb592a4c2370cbcb90843b59" |
| 11 | |
| 12 | // BubblewrapPin is the digest of the pinned bubblewrap built for goarch. |
| 13 | // ok is false where there is no pinned build, and nothing starts there. |
| 14 | func BubblewrapPin(goarch string) (pin string, ok bool) { |
| 15 | switch goarch { |
| 16 | case "amd64": |
| 17 | return BubblewrapSHA256, true |
| 18 | case "arm64": |
| 19 | return BubblewrapSHA256Arm64, true |
| 20 | } |
| 21 | return "", false |
| 22 | } |
| 23 | |