Skip to content

Commit 42c58ba

Browse files
committed
ci: install cargo-generate-rpm from source with --locked
binstall has no prebuilt for cargo-generate-rpm and its no---locked cargo install fallback broke on unpinned transitive deps. Install it directly with --locked so it builds against the crate's tested lockfile.
1 parent 1ed892c commit 42c58ba

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ jobs:
6868
- name: Install packaging tools
6969
uses: cargo-bins/cargo-binstall@30b5ca8b54e1dcffd9548bc87ede1531310fdc67 # v1.20.0
7070

71-
- run: cargo binstall --no-confirm just cargo-deb cargo-generate-rpm
71+
# `just` and `cargo-deb` ship prebuilt binaries that binstall can fetch.
72+
# `cargo-generate-rpm` does not advertise binstall metadata, so binstall
73+
# falls back to a bare `cargo install` (no `--locked`) that breaks on
74+
# unpinned transitive deps. Install it from source with `--locked` so it
75+
# uses the crate's own tested Cargo.lock.
76+
- run: cargo binstall --no-confirm just cargo-deb
77+
- run: cargo install cargo-generate-rpm --locked
7278

7379
- name: Build release binary
7480
run: |

0 commit comments

Comments
 (0)