rustPlatform: --frozen -> --offline
--frozen is stricter than we need in Nixpkgs. If a Cargo.lock is slightly wrong, or (in my use case) if building a subproject that is not a member of the top-level workspace, but the correct Cargo.lock can be entirely resolved from the existing top-level Cargo.lock, it should be deterministic, and shouldn't cause any problems, to let cargo generate the new Cargo.lock. This should result in less need to bother upstreams about fixing their Cargo.lock files in cases where they could have been automatically fixed.
This commit is contained in:
parent
fc246ead19
commit
4816a73bb5
@ -39,7 +39,7 @@ cargoBuildHook() {
|
||||
set -x
|
||||
@setEnv@ cargo build -j $NIX_BUILD_CORES \
|
||||
--target @rustHostPlatformSpec@ \
|
||||
--frozen \
|
||||
--offline \
|
||||
${cargoBuildProfileFlag} \
|
||||
${cargoBuildNoDefaultFeaturesFlag} \
|
||||
${cargoBuildFeaturesFlag} \
|
||||
|
@ -29,7 +29,7 @@ cargoCheckHook() {
|
||||
fi
|
||||
|
||||
argstr="${cargoCheckProfileFlag} ${cargoCheckNoDefaultFeaturesFlag} ${cargoCheckFeaturesFlag}
|
||||
--target @rustHostPlatformSpec@ --frozen ${cargoTestFlags}"
|
||||
--target @rustHostPlatformSpec@ --offline ${cargoTestFlags}"
|
||||
|
||||
(
|
||||
set -x
|
||||
|
@ -29,7 +29,7 @@ cargoNextestHook() {
|
||||
fi
|
||||
|
||||
argstr="${cargoCheckProfileFlag} ${cargoCheckNoDefaultFeaturesFlag} ${cargoCheckFeaturesFlag}
|
||||
--target @rustHostPlatformSpec@ --frozen ${cargoTestFlags}"
|
||||
--target @rustHostPlatformSpec@ --offline ${cargoTestFlags}"
|
||||
|
||||
(
|
||||
set -x
|
||||
|
@ -11,7 +11,7 @@ maturinBuildHook() {
|
||||
set -x
|
||||
@setEnv@ maturin build \
|
||||
--jobs=$NIX_BUILD_CORES \
|
||||
--frozen \
|
||||
--offline \
|
||||
--target @rustTargetPlatformSpec@ \
|
||||
--manylinux off \
|
||||
--strip \
|
||||
|
Loading…
Reference in New Issue
Block a user