mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-23 08:22:41 +03:00
buildPackage: fix issue with inheriting default depsOnly artifacts (#397)
This commit is contained in:
parent
9dae37b4a5
commit
67f100acc0
@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Fixed a bug where `buildPackage` would fail to inherit artifacts from
|
||||||
|
dependency crates if `cargoArtifacts` was not explicitly specified.
|
||||||
|
|
||||||
## [0.14.0] - 2023-09-21
|
## [0.14.0] - 2023-09-21
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -40,8 +40,10 @@ mkCargoDerivation (cleanedArgs // memoizedArgs // {
|
|||||||
cargoArtifacts = args.cargoArtifacts or (
|
cargoArtifacts = args.cargoArtifacts or (
|
||||||
buildDepsOnly (args // memoizedArgs // {
|
buildDepsOnly (args // memoizedArgs // {
|
||||||
installCargoArtifactsMode = args.installCargoArtifactsMode or "use-zstd";
|
installCargoArtifactsMode = args.installCargoArtifactsMode or "use-zstd";
|
||||||
# NB: we intentionally don't run any hooks here since we don't want to actually install
|
# NB: we intentionally don't run any caller-provided hooks here since they might fail
|
||||||
installPhase = "mkdir -p $out";
|
# if they require any files that have been omitted by the source dummification.
|
||||||
|
# However, we still _do_ want to run the installation hook with the actual artifacts
|
||||||
|
installPhase = "prepareAndInstallCargoArtifactsDir";
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user