]> _ Git - alire.git/commit
Allow unknown enum values in index manifests and new `index --check` (#656)
authorAlejandro R Mosteo <alejandro@mosteo.com>
Mon, 4 Jan 2021 18:14:46 +0000 (19:14 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Jan 2021 18:14:46 +0000 (19:14 +0100)
commitccab13317b0fc1eced8017424f7c4e4e655d8ab5
tree72b2163067d721cc3083cadd78513d802347d2c1
parent5f579f2e9bab13655760c28058942b1b7661ad9b
Allow unknown enum values in index manifests and new `index --check` (#656)

* Detect wrong enum values only in local manifests

This allows backwards compatibility for the index, but catches user mistakes.

* New `alr index --check`, check unknown enum values

* Testsuite: proper behavior of enum checks

* Document user-facing changes
doc/user-changes.md
src/alire/alire-releases.adb
src/alire/alire-toml_expressions.adb
src/alire/alire-toml_expressions.ads
src/alr/alr-commands-index.adb
src/alr/alr-commands-index.ads
testsuite/tests/index/check-enums/my_index/crates/crate/.emptydir [new file with mode: 0644]
testsuite/tests/index/check-enums/my_index/index/cr/crate/crate-1.0.0.toml [new file with mode: 0644]
testsuite/tests/index/check-enums/my_index/index/index.toml [new file with mode: 0644]
testsuite/tests/index/check-enums/test.py [new file with mode: 0644]
testsuite/tests/index/check-enums/test.yaml [new file with mode: 0644]