]> _ Git - alire.git/commit
Fix crate config conflicts errors (#1208)
authorFabien Chouteau <Fabien-Chouteau@users.noreply.github.com>
Fri, 18 Nov 2022 08:55:04 +0000 (09:55 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Nov 2022 08:55:04 +0000 (09:55 +0100)
commit2d8fab44939cfc2b32bc0693ed75a6f5141b3252
treebe513b9d1c3c4116f8684cc9f622b1ed7da6e822
parente24486cadf021901c342f1da6cc822c06795eef8
Fix crate config conflicts errors (#1208)

* Alire.Properties.Configurations: print boolean values in lowercase

To match casing of TOML files where they come from.

* Alire.Crate_Configuration: fix, improve, and test value conflicts

 - TOML value comparison was incorrect (use Equals function now)
 - The "set by" info was incorrect
 - Error message now show the conflicting values
19 files changed:
src/alire/alire-crate_configuration.adb
src/alire/alire-crate_configuration.ads
src/alire/alire-properties-configurations.adb
src/alire/alire-properties-configurations.ads
testsuite/tests/crate_config/value_conflict/my_index/index/he/hello_world/hello_world-0.1.0.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_conflict/my_index/index/index.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_conflict/my_index/index/li/libcrate_config_a/libcrate_config_a-1.0.0.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_conflict/my_index/index/li/libcrate_config_b/libcrate_config_b-1.0.0.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_conflict/my_index/index/li/libcrate_config_c/libcrate_config_c-1.0.0.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_conflict/test.py [new file with mode: 0644]
testsuite/tests/crate_config/value_conflict/test.yaml [new file with mode: 0644]
testsuite/tests/crate_config/value_match/my_index/index/he/hello_world/hello_world-0.1.0.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_match/my_index/index/index.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_match/my_index/index/li/libcrate_config_a/libcrate_config_a-1.0.0.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_match/my_index/index/li/libcrate_config_b/libcrate_config_b-1.0.0.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_match/my_index/index/li/libcrate_config_c/libcrate_config_c-1.0.0.toml [new file with mode: 0644]
testsuite/tests/crate_config/value_match/test.py [new file with mode: 0644]
testsuite/tests/crate_config/value_match/test.yaml [new file with mode: 0644]
testsuite/tests/show/jekyll/test.py