-
Notifications
You must be signed in to change notification settings - Fork 375
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
Incorrect Parsing of Arrays in Config Files #863
Comments
We also need to add unittests for this to avoid further regressions. |
In case two, I don't think it should merge/work |
Hmmm, I think that would be a breaking change because we have the sum of the values, correct? Maybe something to change in 0.3. Lines 303 to 329 in 48d2b7b
|
It looks like Lines 250 to 257 in 48d2b7b
|
hmm, I guess we need a better way to flag that that nothing should be inherited for arrays, for now I think it's fine to keep the correct behaviour (i.e all cases should work as described) the issue is that arrays can be null, empty or filled. Strings and booleans are null or filled. |
I've fixed all of the above in #867, and added comprehensive unittests to ensure the regression does not reoccur. In v0.3.0, we can set it so they don't merge. |
Checklist
Describe your issue
If providing arrays in
[build.env]
, they don't seem to be used correctly. For example, the following config files:Case 1
Case 2
Case 3
When compiling with
CARGO_TERM_COLOR=never cross build --target aarch64-unknown-linux-gnu
, we should expectCARGO_TERM_COLOR
to passthrough in all cases, but it only does in the last one. We'd expect in case 2 and 3 for the arrays to merge, and in 1 for it to only use the passthrough in[build.env]
. It seems to ignore case 1 and 2 though.What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.2
Example
No response
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: