Skip to content

Commit

Permalink
fix(multivers): read the correct RUSTFLAGS variable
Browse files Browse the repository at this point in the history
There was a typo that lead to `RUSTFLAGS` being ignored and overwritten.
  • Loading branch information
ronnychevalier committed Dec 16, 2023
1 parent 8ea429b commit c8797ad
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 @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

### Fixed

- `RUSTFLAGS` is no longer overwritten completely (discarding it previous value). There was a typo when reading its current value (`RUST_FLAGS` instead of `RUSTFLAGS`).

[Unreleased]: https://github.com/ronnychevalier/cargo-multivers/compare/v0.6.0...HEAD

## [0.6.0] - 15-12-2023
Expand Down
2 changes: 1 addition & 1 deletion src/multivers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Multivers {
Triple::from_str(&self.target).context("Failed to parse the target")?;
let manifest_path = package.manifest_path.as_std_path().to_path_buf();
let features_list = self.features.features.join(" ");
let mut rust_flags = std::env::var("RUST_FLAGS").unwrap_or_default();
let mut rust_flags = std::env::var("RUSTFLAGS").unwrap_or_default();

let metadata = MultiversMetadata::from_package(package)
.context("Failed to parse package's metadata")?;
Expand Down

0 comments on commit c8797ad

Please sign in to comment.