]> _ Git - alire.git/commit
fix: minor issues with dynamic properties (#1887)
authorAlejandro R Mosteo <amosteo@unizar.es>
Wed, 19 Mar 2025 17:55:13 +0000 (18:55 +0100)
committerGitHub <noreply@github.com>
Wed, 19 Mar 2025 17:55:13 +0000 (18:55 +0100)
commit71e371d1f5b6cf1a2229e85dc5482c9971a5258e
tree9482dfb0a181ebda0e5952f6e154c3a1f312d78c
parent308e45038121a1201c77b218b166009a8d0ad9eb
fix: minor issues with dynamic properties (#1887)

* fix: actually check if a property can be dynamic

* fix checking of cardinalities

We were checking only labeled properties, and so missing any more complex
property.

* fix: test property exporting to TOML

* Fix dependencies

* Update index before `alr search`

* test for static expressions enforcement

* test for enforcing singleton properties

* Test for conditional test export

* Change Pragma Assert into our own Assert procedure

* Deprecate license arrays taking advantage of the new checks

* Test both table and array test

* Test rejection of license arrays
46 files changed:
.gitmodules
BREAKING.md
scripts/ci-github.sh
src/alire/alire-conditional_trees-toml_load.adb
src/alire/alire-conditional_trees.adb
src/alire/alire-properties-from_toml.adb
src/alire/alire-properties-from_toml.ads
src/alire/alire-properties-labeled.adb
src/alire/alire-properties-labeled.ads
src/alire/alire-properties-tests.adb
src/alire/alire-releases.adb
src/alire/alire-toml_adapters.adb
src/alire/alire-toml_adapters.ads
src/alire/alire.adb
src/alire/alire.ads
testsuite/drivers/helpers.py
testsuite/skels/local-index/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/cache/sync-attrs/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/externals/bad-versions/my_index/index/cr/crate1/crate1-external.toml
testsuite/tests/externals/bad-versions/my_index/index/cr/crate2/crate2-external.toml
testsuite/tests/index/bad-license-array/test.py [new file with mode: 0644]
testsuite/tests/index/bad-license-array/test.yaml [new file with mode: 0644]
testsuite/tests/index/check-cardinality/test.py [new file with mode: 0644]
testsuite/tests/index/check-cardinality/test.yaml [new file with mode: 0644]
testsuite/tests/index/check-dynamic/test.py [new file with mode: 0644]
testsuite/tests/index/check-dynamic/test.yaml [new file with mode: 0644]
testsuite/tests/index/check-enums/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/index/env-bad-path/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/index/env-path/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/install/binary-release/my_index/index/cr/crate/crate-0.1.0.toml
testsuite/tests/install/binary-release/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/install/independent/my_index/index/cr/crate1/crate1-1.0.0.toml
testsuite/tests/install/independent/my_index/index/cr/crate2/crate2-1.0.0.toml
testsuite/tests/misc/hashes/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/misc/hashes/my_index/index/cr/crate/crate-2.0.0.toml
testsuite/tests/pin/manifest-invalid-pins/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/provides/metadata/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/publish/private-indexes/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/publish/tarball-plaindir-nonstd/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/publish/tarball-repo-nonstd/my_index/index/cr/crate/crate-1.0.0.toml
testsuite/tests/show/dependents/my_index/index/cr/crate1/crate1-1.0.0.toml
testsuite/tests/show/dependents/my_index/index/cr/crate2a/crate2a-2.0.0.toml
testsuite/tests/show/dependents/my_index/index/cr/crate2b/crate2b-2.0.0.toml
testsuite/tests/show/dependents/my_index/index/cr/crate3/crate3-3.0.0.toml
testsuite/tests/test/conditional-tests/test.py [new file with mode: 0644]
testsuite/tests/test/conditional-tests/test.yaml [new file with mode: 0644]