buildTrunkPackage: set --release=true on newer trunk versions (#736)

This commit is contained in:
Ivan Petkov 2024-11-08 10:25:05 -08:00 committed by GitHub
parent a4ca939054
commit f53b0b974f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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}"