Skip to content

Commit

Permalink
Update cargo-msrv command to use find subcommand
Browse files Browse the repository at this point in the history
Switches to the `find` subcommand in the cargo-msrv command to ensure
accurate verification of the minimum supported Rust version (MSRV).
This change improves the reliability of the MSRV detection process.

More info on the breaking change:
https://github.com/foresterre/cargo-msrv/releases/tag/v0.16.0
  • Loading branch information
derrix060 committed Oct 11, 2024
1 parent 2654b64 commit 23b7386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ runs:
for path in "${paths[@]}"; do
echo "Running cargo-msrv for $path"
rm -f logs
cargo msrv --path $path --output-format json --no-log > logs
cargo msrv find --path $path --output-format json --no-log > logs
version=$(cat logs | grep "msrv-complete" | jq -r '.msrv')
if [[ "$version" == "null" ]]; then
echo "Could not find MSRV for $path"
Expand Down

0 comments on commit 23b7386

Please sign in to comment.