Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build/target config file ordering #897

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

Alexhuszagh
Copy link
Contributor

@Alexhuszagh Alexhuszagh commented Jul 1, 2022

Fix the order of values for string (as well as the pre-build vec) values when parsing from config files and environment variables.

The old behavior was:

  1. Envvar build.
  2. Envvar target
  3. Config target
  4. Config build

The new behavior is:

  1. Envvar target
  2. Config target
  3. Envvar build.
  4. Config build

Some functions were also made more general.

@Alexhuszagh Alexhuszagh added bug A-config Area: cross-toml config labels Jul 1, 2022
@Alexhuszagh Alexhuszagh requested a review from a team as a code owner July 1, 2022 18:42
…ues when parsing from config files and environment variables.

The old behavior was:
1. Envvar build.
2. Envvar target
3. Config target
4. Config build

The new behavior is:
1. Envvar target
2. Config target
3. Envvar build.
4. Config build

Some functions were also made more general.
Copy link
Member

@Emilgardis Emilgardis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

We should however probably "structify" it a bit so it's clearly signaled what is target and what is build

@Emilgardis
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 1, 2022

Build succeeded:

@bors bors bot merged commit 5bb63ae into cross-rs:main Jul 1, 2022
@Emilgardis Emilgardis modified the milestone: v0.2.3 Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config Area: cross-toml config bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants