repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

ci: pin and lock cargo-binstall

5a72f118e6f46922583cb3eadd857bfabae8cc07

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

binstall itself was installed unpinned and unlocked, so a semver-
compatible but broken dependency release could still break bootstrap
on a fresh runner. Pin 1.23.0 and install --locked, closing the last
crates.io drift surface in the gate toolchain.

Changed files (1)

+10 / −2 text lines

Diff layout

xtask/src/main.rs

Modified

+10 / −2 text lines

2828const NEXTEST_VERSION: &str = "0.9.144";
3030/// Version of `cargo-binstall` used to install `cargo-nextest`.
31const BINSTALL_VERSION: &str = "latest";
31const BINSTALL_VERSION: &str = "1.23.0";
3232const CRATES: &[&str] = &[
3333 "smith",
3434 "smith-core",
127127fn install_binstall() -> ExitCode {
128128 tool_present(&["binstall", "--help"], || {
129 cargo(&["install", "cargo-binstall", "--version", BINSTALL_VERSION])
129 cargo(&[
130 "install",
131 "cargo-binstall",
132 "--version",
133 BINSTALL_VERSION,
134 // Freeze binstall's own dependency graph for the same reason
135 // as cargo_pup: crates.io drift cannot break the gate.
136 "--locked",
137 ])
130138 })