Commit 2b14f3d
committed
build: Calculate checksums after the nix fixup phase
crossplane/crossplane#7467 reported that checksums for the amd64 crank binaries
in our releases are incorrect. It turns out this applies to both the CLI (now
the crossplane binary from this repository) and the core crossplane controller
binary (the crossplane binary in c/c).
The issue is that Nix strips binaries in its `fixup` build phase, which runs
after our `postInstall` hook. The stripping applies only to binaries for the
host architecture, which in our release actions is always amd64.
Calculate checksums in the `postFixup` phase so that we checksum the already
stripped binary. Add a checksum verification step before uploading artifacts to
catch any similar issues in the future.
Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>1 parent 6f65d73 commit 2b14f3d
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments