TOOL-27131 Use --locked flag to force Cargo to use the packaged Cargo.lock file #327
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
zfs pre-push runs (and ab-pre-push) have been failing with this:
Solution
We need to upgrade rust tools to the latest stable version 1.83.0.
When I attempted that, we ran into a bunch of clippy / checkstyle errors.
https://github.com/delphix/zfs/actions/runs/12379971054/job/34555299344?pr=1955
I am working on fixing them but it is quite invlolved and we need to switch using alternate packages instead of deprecated packages. It looks like it will take a while longer for fix them all. Since this is causing many builds to fail, I would like to get the build to work with the current version of rust. We can do that if we force the use of the version that we specify in our Cargo.lock file (which is not the default behavior) This is done with the --locked flag..
See also: delta-io/delta-rs#3065
Testing Done
ab-pre-push:
https://selfservice-jenkins.eng-tools-prd.aws.delphixcloud.com/job/appliance-build-orchestrator-pre-push/10081/ PASS
https://selfservice-jenkins.eng-tools-prd.aws.delphixcloud.com/job/appliance-build-orchestrator-pre-push/10083/ PASS
zfs pre-push: https://ops-jenkins.eng-tools-prd.aws.delphixcloud.com/job/linux-pkg/job/develop/job/build-package/job/zfs/job/pre-push/356/console PASS
Manual test:
Failing step passes with
--locked
option.