Unverified Commit cd1a292c authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

pass `--locked` to `cargo binstall` (#94834)

If `binstall` fails to download a precompiled artifact it falls back to
`cargo install` and many tools (like `nextest`) require the `--locked`
flag. So pass the `--locked` flag.
parent e154157c
...@@ -245,7 +245,7 @@ jobs: ...@@ -245,7 +245,7 @@ jobs:
- name: Install nextest - name: Install nextest
if: ${{ inputs.needsNextest == 'yes' }} if: ${{ inputs.needsNextest == 'yes' }}
run: cargo binstall --no-confirm cargo-nextest@0.9.133 run: cargo binstall --no-confirm --locked cargo-nextest@0.9.133
- run: rustc --version - run: rustc --version
if: ${{ (inputs.uploadNativeArtifact != '') || inputs.needsNextest == 'yes' || inputs.needsRust == 'yes' }} if: ${{ (inputs.uploadNativeArtifact != '') || inputs.needsNextest == 'yes' || inputs.needsRust == 'yes' }}
......
...@@ -43,7 +43,7 @@ jobs: ...@@ -43,7 +43,7 @@ jobs:
uses: ./.github/actions/setup-rust uses: ./.github/actions/setup-rust
- name: Install cargo-codspeed - name: Install cargo-codspeed
run: cargo binstall --no-confirm cargo-codspeed@3.0.5 run: cargo binstall --locked --no-confirm cargo-codspeed@3.0.5
- name: Start sccache - name: Start sccache
uses: ./.github/actions/sccache uses: ./.github/actions/sccache
...@@ -80,7 +80,7 @@ jobs: ...@@ -80,7 +80,7 @@ jobs:
uses: ./.github/actions/setup-rust uses: ./.github/actions/setup-rust
- name: Install cargo-codspeed - name: Install cargo-codspeed
run: cargo binstall --no-confirm cargo-codspeed@3.0.5 run: cargo binstall --locked --no-confirm cargo-codspeed@3.0.5
- name: Start sccache - name: Start sccache
uses: ./.github/actions/sccache uses: ./.github/actions/sccache
...@@ -118,7 +118,7 @@ jobs: ...@@ -118,7 +118,7 @@ jobs:
uses: ./.github/actions/setup-rust uses: ./.github/actions/setup-rust
- name: Install cargo-codspeed - name: Install cargo-codspeed
run: cargo binstall --no-confirm cargo-codspeed@3.0.5 run: cargo binstall --locked --no-confirm cargo-codspeed@3.0.5
- name: Start sccache - name: Start sccache
uses: ./.github/actions/sccache uses: ./.github/actions/sccache
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment