mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 05:36:09 +03:00
buildTrunkPackage: set --release=true on newer trunk versions (#736)
This commit is contained in:
parent
a4ca939054
commit
f53b0b974f
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
* `buildTrunkPackage` will pass in `--release=true` (instead of just
|
||||
`--release`) for trunk versions 0.21 or higher to avoid argument ambiguities
|
||||
|
||||
## [0.19.1] - 2024-10-12
|
||||
|
||||
### Added
|
||||
|
@ -84,7 +84,7 @@ mkCargoDerivation (args // {
|
||||
buildPhaseCargoCommand = args.buildPhaseCommand or ''
|
||||
local profileArgs=""
|
||||
if [[ "$CARGO_PROFILE" == "release" ]]; then
|
||||
profileArgs="--release"
|
||||
profileArgs="--release${lib.optionalString (lib.versionAtLeast trunk.version "0.21") "=true"}"
|
||||
fi
|
||||
|
||||
trunk ${trunkExtraArgs} build $profileArgs ${trunkExtraBuildArgs} "${trunkIndexPath}"
|
||||
|
Loading…
Reference in New Issue
Block a user