Skip to content

Commit

Permalink
buildTrunkPackage: set --release=true on newer trunk versions (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetkov authored Nov 8, 2024
1 parent a4ca939 commit f53b0b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/buildTrunkPackage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit f53b0b9

Please sign in to comment.