]> _ Git - alire.git/log
alire.git
2 months agodev: make version patcher skip updating when commit is identical (#1958)
César Sagaert [Tue, 27 May 2025 11:58:31 +0000 (13:58 +0200)]
dev: make version patcher skip updating when commit is identical (#1958)

* make version patcher skip updating when commit is identical

* style warnings

2 months agoavoid overwriting the test list gpr file when not needed (#1959)
César Sagaert [Tue, 27 May 2025 08:24:32 +0000 (10:24 +0200)]
avoid overwriting the test list gpr file when not needed (#1959)

3 months agoTypo: declare (#1954)
Jesper Quorning [Mon, 19 May 2025 08:35:48 +0000 (10:35 +0200)]
Typo: declare (#1954)

3 months agofix: `alr toolchain`: validate duplicated release args (#1947)
David Sáenz [Fri, 9 May 2025 09:04:31 +0000 (11:04 +0200)]
fix: `alr toolchain`: validate duplicated release args (#1947)

* `alr toolchain`: validate duplicated release args

* Revert changes Alire.Meta

* `alr toolchain`: fix validate duplicated release args

* Alire.Utils: Transform defaults to null

3 months agofix: recognition of hash specified with `--commit=` (#1942)
Seb M'Caw [Fri, 25 Apr 2025 07:18:33 +0000 (08:18 +0100)]
fix: recognition of hash specified with `--commit=` (#1942)

* Add tests

* Fix recognition of hash specified with `--commit=`

* Fix `Remote_Commit` with local repo URLs

4 months agodev: tasks to compile in vscode bypassing `alr` (#1941)
Alejandro R Mosteo [Sun, 20 Apr 2025 15:40:56 +0000 (17:40 +0200)]
dev: tasks to compile in vscode bypassing `alr` (#1941)

4 months agofeat: lazy bash completion loading (#1940)
Alejandro R Mosteo [Sun, 20 Apr 2025 10:19:27 +0000 (12:19 +0200)]
feat: lazy bash completion loading (#1940)

* feat: delayed completion initialization

* Show feedback while initialization is happening

* Clean after initialization completes

* Use ANSI only if available

4 months agofix: fallback to copy/delete for renames (#1925)
Alejandro R Mosteo [Fri, 18 Apr 2025 20:49:10 +0000 (22:49 +0200)]
fix: fallback to copy/delete for renames (#1925)

* Use Merge_Dirs for pin cloning

We were using a rename that could fail across filesystems

* Remove after copy

* Fix infinite recursion in attrib for softlinks

* Use den for softlink deletion

* Self-review

* Best-effort rename

4 months agofix: multiple built-in test runners (#1922)
Alejandro R Mosteo [Tue, 15 Apr 2025 10:43:01 +0000 (12:43 +0200)]
fix: multiple built-in test runners (#1922)

* fix: wrong dir used when multiple alire test runners

Each run entered the given directory from the previous test runner one rather
than the crate root.

* test

4 months agofix: create tmp dir for pin checkout in final folder (#1936)
Alejandro R Mosteo [Tue, 15 Apr 2025 08:07:39 +0000 (10:07 +0200)]
fix: create tmp dir for pin checkout in final folder (#1936)

4 months agofix: don't try to find canonical paths needlessly (#1934)
Alejandro R Mosteo [Thu, 3 Apr 2025 11:26:55 +0000 (13:26 +0200)]
fix: don't try to find canonical paths needlessly (#1934)

4 months agofix: remove leftover debug code
Alejandro R. Mosteo [Thu, 27 Mar 2025 14:56:42 +0000 (15:56 +0100)]
fix: remove leftover debug code

4 months agofix: license selection ignored by `alr init` (#1923)
Seb M'Caw [Thu, 27 Mar 2025 12:50:56 +0000 (12:50 +0000)]
fix: license selection ignored by `alr init` (#1923)

4 months agofeat: percentage progress of tests when in TTY (#1917)
César Sagaert [Thu, 27 Mar 2025 12:50:24 +0000 (13:50 +0100)]
feat: percentage progress of tests when in TTY (#1917)

* feat: add percentage progress of tests when in TTY

* Right-align pct

* Actually right-align

---------

Co-authored-by: Alejandro R. Mosteo <amosteo@unizar.es>
4 months agodev: override any existing `awsres` in `embedder.sh` (#1924)
Seb M'Caw [Thu, 27 Mar 2025 12:15:31 +0000 (12:15 +0000)]
dev: override any existing `awsres` in `embedder.sh` (#1924)

4 months agofix: incorrect condition for warning about argument forwarding to test runner (#1916)
César Sagaert [Wed, 26 Mar 2025 18:42:45 +0000 (19:42 +0100)]
fix: incorrect condition for warning about argument forwarding to test runner (#1916)

4 months agofix: remove style checks from all profiles (#1919)
Alejandro R Mosteo [Mon, 24 Mar 2025 11:07:25 +0000 (12:07 +0100)]
fix: remove style checks from all profiles (#1919)

* Assertions test and related changes

* Disable style checks in all profiles

* Fix style-related tests

* Update PR number in user changes

4 months agofeat: `templates_parser` for file initializations (#1890)
Alejandro R Mosteo [Sun, 23 Mar 2025 13:42:31 +0000 (14:42 +0100)]
feat: `templates_parser` for file initializations (#1890)

* feat: `templates_parser` for file initializations

commit 72eff5c0b408b7fae9006e6b5f07a649fb33a73d
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 23:55:41 2025 +0100

    Self-review

commit 417497746894fc073e732f8b9ee870c7fe3caa1c
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 23:21:52 2025 +0100

    Downgrade templates parser to avoid GNAT>=11

commit 9cece278f5644539833846659cba61909c89d25a
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 23:17:50 2025 +0100

    Hash to avoid arbitrary regeneration

commit bd240607edc6de98a1402ffb2368236e55e48474
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 23:06:53 2025 +0100

    Tests passing

commit b37e33e93659ed520d75cd54887b0e40d2aa1666
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Mon Mar 10 14:45:27 2025 +0100

    update init to use templates

commit ffd90a009adc636884126c2702edccaa02dd96dd
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 23:15:35 2025 +0100

    Proof of concept working

commit 95514205091938a83a6c61ed951988f4f2a9b917
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 22:46:06 2025 +0100

    Templated file trees

commit 557e67ec31a2b28b2f1c28bbb99c1f94be5423bf
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 21:15:56 2025 +0100

    Remove custom experiments in main

commit f0c573d599fb4ce9d398f8a6b9f1309c289785ea
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 21:12:23 2025 +0100

    Write file with templating

commit 947d1db4467458955f79516207895104c13af42c
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 20:12:23 2025 +0100

    Embedded resource writing (no templating)

commit 5e533d5860066f80a5949815b43c726457757b9d
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 11:30:06 2025 +0100

    Template registration

commit fc19c099ce40600457ac48b91e7c9de4af694df1
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 10:55:06 2025 +0100

    embedder script

commit 90d0778662e51d9153a2187597c4c4755cc8ddb7
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Mar 9 10:32:14 2025 +0100

    Sample binary crate

commit ce9ef501e92df5da5d9c89b668fa472555e820a8
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Nov 10 19:00:53 2024 +0100

    wip: on track to 1st prototype

commit 1e52e5803d4363428ed6c445ee3d4d9f40647c0a
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date:   Sun Oct 27 20:05:57 2024 +0100

    WIP: experimenting with embedded resources

* Fix tests

* Fix compilation with `alr build`

* Fix tags initialization

* Self-review

* Remove useless template timestamp

4 months agofix: missing space on image of test property with Id field (#1918)
Lionel Draghi [Sun, 23 Mar 2025 12:19:52 +0000 (13:19 +0100)]
fix: missing space on image of test property with Id field (#1918)

5 months agodev: conditionally use --builtin in bash completion
Alejandro R. Mosteo [Fri, 21 Mar 2025 08:33:02 +0000 (09:33 +0100)]
dev: conditionally use --builtin in bash completion

5 months agodev: remove `index-test` command (#1913)
César Sagaert [Thu, 20 Mar 2025 19:10:54 +0000 (20:10 +0100)]
dev: remove `index-test` command (#1913)

* feat: remove index-test command

* test: fix legacy actions not doing a chdir to the crate root

5 months agofeat: find tests in nested folders (#1914)
Alejandro R Mosteo [Thu, 20 Mar 2025 18:01:33 +0000 (19:01 +0100)]
feat: find tests in nested folders (#1914)

* Recursive test enumeration

* Keep hierarchy for test name output

* Test and cosmetic fixes

* Improved test

* Consistent output cross-OS

* Fix test for particular macOS output

* Hardening and test for filtering on paths

* Remove predicate that crashes old GNAT

* gnatformat

* Make portable path types explicit

* filtering and general fixes

---------

Co-authored-by: AldanTanneo <aldantanneo@gmail.com>
5 months agofeat: `--builtin` safeguard for `alr settings` (#1912)
Alejandro R Mosteo [Thu, 20 Mar 2025 11:09:37 +0000 (12:09 +0100)]
feat: `--builtin` safeguard for `alr settings` (#1912)

* Add --builtin to `alr settings`

* Test for new switch

* Documentation

* Apply also to --unset

* Fix user changes

5 months agofix: use gnat_native for aarch64-linux on Ubuntu 22.04 (#1910)
Maxim Reznik [Wed, 19 Mar 2025 18:04:46 +0000 (20:04 +0200)]
fix: use gnat_native for aarch64-linux on Ubuntu 22.04 (#1910)

But bootstrap alire with `alire-project/setup-alire`, because
alr 2.1.0 was built on Ubuntu 24.04 while we need it on 22.04.

5 months agofix: minor issues with dynamic properties (#1887)
Alejandro R Mosteo [Wed, 19 Mar 2025 17:55:13 +0000 (18:55 +0100)]
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

5 months agofix: test from subdir (#1911)
Alejandro R Mosteo [Wed, 19 Mar 2025 16:48:57 +0000 (17:48 +0100)]
fix: test from subdir (#1911)

* Test

* fix: move to root before testing

* Revert alire-meta.ads

* More readable test

* Self-review

5 months agofeat: add test runner selection via `--id` (#1909)
César Sagaert [Wed, 19 Mar 2025 16:13:48 +0000 (17:13 +0100)]
feat: add test runner selection via `--id` (#1909)

* feat: add test runner selection via `--id`

* docs: document `id` field for tests

5 months agofix: updating pins with `subdir` which track Alire-generated files (#1906)
Seb M'Caw [Wed, 19 Mar 2025 09:40:22 +0000 (09:40 +0000)]
fix: updating pins with `subdir` which track Alire-generated files (#1906)

* Update test

* Fix updating pins with `subdir` which track Alire-generated files

5 months agofeat: move selftests in `Alire.Selftest` to new Ada testsuite (#1893)
Alejandro R Mosteo [Mon, 17 Mar 2025 16:59:22 +0000 (17:59 +0100)]
feat: move selftests in `Alire.Selftest` to new Ada testsuite (#1893)

* Move `Alire.Selftest` to new Ada testsuite

* Update test script to run Ada testsuite

* Document new testsuite

* Remove selftests from Python testsuite

* See what happens with external compiler

* Self-review

* Fix test

* Fix build profile of testsuite

5 months agodocs: test command usage (#1888)
César Sagaert [Mon, 17 Mar 2025 12:00:38 +0000 (13:00 +0100)]
docs: test command usage (#1888)

* docs: document the manifest [test] section and the new alr test command

* move 'success' log to end of test runs

* improve help and diagnostics in alr test

* address review comments

* changelog and breaking changes

* improve getting started section clarity

* address comments

5 months agofeat: add .gitignore to `alr init`-generated test crate (#1894)
César Sagaert [Mon, 17 Mar 2025 11:28:48 +0000 (12:28 +0100)]
feat: add .gitignore to `alr init`-generated test crate (#1894)

5 months agofi: incorrect example URL in `alr index -h` (#1904)
Seb M'Caw [Mon, 17 Mar 2025 11:18:57 +0000 (11:18 +0000)]
fi: incorrect example URL in `alr index -h` (#1904)

5 months agofix: enable assertions in test crate (#1902)
Alejandro R Mosteo [Sat, 15 Mar 2025 23:34:40 +0000 (00:34 +0100)]
fix: enable assertions in test crate (#1902)

5 months agodoc: add missing operators to version selection help (#1901)
Alejandro R Mosteo [Fri, 14 Mar 2025 19:50:57 +0000 (20:50 +0100)]
doc: add missing operators to version selection help (#1901)

5 months agofix: broken link to Upgrading doc (#1878)
Jeremy Grosser [Thu, 13 Mar 2025 10:11:47 +0000 (03:11 -0700)]
fix: broken link to Upgrading doc (#1878)

* Fix broken link to Upgrading doc

* Break up too long line

---------

Co-authored-by: Alejandro R Mosteo <amosteo@unizar.es>
5 months agofeat: built-in test runner and new `test` command (#1874)
César Sagaert [Mon, 10 Mar 2025 12:25:56 +0000 (13:25 +0100)]
feat: built-in test runner and new `test` command (#1874)

* first draft of alire test runner

* use fixed output file name in test runner

* add exe suffix when spawning tests (windows compat)

* move test runner to libalire

* add "dim_output" option to non-capturing spawns

* manifest [test] section support

* generate test crate skeleton in `alr init`

* move old test command to `index-test`

* new `test` command

* test filtering, formatting

* use index-test in testsuite

* change references to 'alr test' to 'alr index-test' in documentation and comments

* fix crash on first test run

* tests for revamped test command

* fix broken tests

* remove test-runner command

* address comments

* change default test crate name to `<mycrate>_tests`

* fix broken test

* make example test pass by default

* add support for legacy actions behaviour and multiple test runners

* fix misused build boolean success

* address review comments

* Fix dependencies

* better manifest parsing for test section

---------

Co-authored-by: Alejandro R. Mosteo <amosteo@unizar.es>
5 months agofix: outdated yeison_12 dependency
Alejandro R. Mosteo [Sun, 9 Mar 2025 09:21:34 +0000 (10:21 +0100)]
fix: outdated yeison_12 dependency

5 months agodev: post-release checklist
Alejandro R. Mosteo [Tue, 4 Mar 2025 10:23:04 +0000 (11:23 +0100)]
dev: post-release checklist

5 months agofeat: 2.1 preparations (#1876)
Alejandro R Mosteo [Tue, 4 Mar 2025 10:02:00 +0000 (11:02 +0100)]
feat: 2.1 preparations (#1876)

* Release preparations

* Fix workflow warning

* Fix test with hardcoded index version

* fix: executable permissions

* feat: improved error message for unknown predefined variables in env (#1875)

Now full message mentions the fact that this evaluation is expected for
prededefined variables and the offending key is printed.

Example:
```
error: Unknown predefined variable in environment variable 'PATH' of 'alr': Unknown formatting key: HOME
```

* fix: assorted bitrot since last release

* fix: Windows installer

---------

Co-authored-by: Manuel <mgrojo@gmail.com>
5 months agofeat: improved error message for unknown predefined variables in env (#1875)
Manuel [Mon, 3 Mar 2025 10:06:32 +0000 (11:06 +0100)]
feat: improved error message for unknown predefined variables in env (#1875)

Now full message mentions the fact that this evaluation is expected for
prededefined variables and the offending key is printed.

Example:
```
error: Unknown predefined variable in environment variable 'PATH' of 'alr': Unknown formatting key: HOME
```

5 months agofeat: proper `alr printenv` output even when sync needed (#1868)
Alejandro R Mosteo [Thu, 27 Feb 2025 12:02:56 +0000 (13:02 +0100)]
feat: proper `alr printenv` output even when sync needed (#1868)

* feat: enable silent running for `alr printenv`

* New test

* Fix collateral damage

* Silently skip if already debugging

* Simplify test

5 months agofix: don't crash on `alr --format show --external` (#1871)
Alejandro R Mosteo [Thu, 27 Feb 2025 12:01:54 +0000 (13:01 +0100)]
fix: don't crash on `alr --format show --external` (#1871)

* fix: missing headers in show --external table

* New test

* Remove non-structured output when --format

* Fix collateral damage

5 months agofeat: check executable existence prior to spawn (#1862)
Alejandro R Mosteo [Mon, 24 Feb 2025 15:28:06 +0000 (16:28 +0100)]
feat: check executable existence prior to spawn (#1862)

* feat: check executable existence prior to spawn

* Fix dependencies

* New test

* Fix related test

* Bump aaa

* Remove TODO

5 months agofeat: test for solver timeout behavior (#1865)
Alejandro R Mosteo [Mon, 24 Feb 2025 15:27:35 +0000 (16:27 +0100)]
feat: test for solver timeout behavior (#1865)

* feat: test solver timeout behavior

* Self-review

* Fix trailing whitespace

5 months agofix: Did_You_Mean crashing with invalid data (#1864)
Alejandro R Mosteo [Mon, 24 Feb 2025 14:09:14 +0000 (15:09 +0100)]
fix: Did_You_Mean crashing with invalid data (#1864)

5 months agofeat: test ensuring no trivial rebuilds (#1863)
Alejandro R Mosteo [Mon, 24 Feb 2025 14:08:36 +0000 (15:08 +0100)]
feat: test ensuring no trivial rebuilds (#1863)

* feat: test ensuring no trivial rebuilds

* Fix test on Windows

5 months agofix: detect changes in manifests of linked dependencies (#1860)
Alejandro R Mosteo [Mon, 24 Feb 2025 14:08:06 +0000 (15:08 +0100)]
fix: detect changes in manifests of linked dependencies (#1860)

* Test that triggers bug

* Check linked manifests for changes

* Self-review

* Fix test

5 months agofeat: structured output with `alr --format show` (#1851)
Alejandro R Mosteo [Mon, 24 Feb 2025 14:06:39 +0000 (15:06 +0100)]
feat: structured output with `alr --format show` (#1851)

* Formatted output for `alr show`

* wip: Sweept all commands for --format compatibility

Up to get (included)

* Support all types and conds. in `alr --format show`

* Test for `alr --format show`

* User changes

* Self-review

* Enable & test YAML

* Update alire.toml for self-build

* Workaround via Controlled

* Workaround via leaky pointer

* Bump dependencies

* Explain workaround

5 months agofix: workflow condition (#1861)
Alejandro R Mosteo [Fri, 21 Feb 2025 21:01:05 +0000 (22:01 +0100)]
fix: workflow condition (#1861)

5 months ago feat: nightly appImage in release workflow (#1859)
Alejandro R Mosteo [Fri, 21 Feb 2025 18:13:02 +0000 (19:13 +0100)]
 feat: nightly appImage in release workflow (#1859)

* Nightly appImage reusing release workflow

* Fix workflow permissions

* Fix uploader dependencies

* Remove speed-ups for final merge

6 months agofeat: allow pinning a crate in a subdir of a repo (#1857)
Alejandro R Mosteo [Thu, 20 Feb 2025 12:33:57 +0000 (13:33 +0100)]
feat: allow pinning a crate in a subdir of a repo (#1857)

* Load monorepo pin from manifest

* Add --subdir to `alr with`

* Add `--subdir` to `alr pin`

* Test

* Self-review

* User changes

* Explicity typing in specs

6 months agofix: GCC 15 warnings (#1855)
Maxim Reznik [Wed, 19 Feb 2025 12:00:29 +0000 (14:00 +0200)]
fix: GCC 15 warnings (#1855)

> alire-conditional_trees.adb:30:14: (style) bad casing of "TO_YAML" declared at alire-conditional_trees.ads:450 [-gnatyr]

6 months agofix: action error masked by following successful action (#1841)
Alejandro R Mosteo [Fri, 14 Feb 2025 12:42:22 +0000 (13:42 +0100)]
fix: action error masked by following successful action (#1841)

* fix action error being masked by following action

* Self-review

* Fix uninitialized out parameter

6 months agofeat: tests duration reporting (#1848)
Alejandro R Mosteo [Thu, 13 Feb 2025 13:58:44 +0000 (14:58 +0100)]
feat: tests duration reporting (#1848)

* Add test duration measurement

* Enable all around

* Remove nproc

6 months agofix: remove `libgcc_s_seh-1.dll` dependency (#1847)
Seb M'Caw [Thu, 13 Feb 2025 11:19:12 +0000 (11:19 +0000)]
fix: remove `libgcc_s_seh-1.dll` dependency (#1847)

* Add test

* Add '-static' linker switch

6 months agofix: integrate appimage artifact into release workflow (#1846)
Alejandro R Mosteo [Wed, 12 Feb 2025 14:33:42 +0000 (15:33 +0100)]
fix: integrate appimage artifact into release workflow (#1846)

* Integrate appimage artifact into release workflow

* Add upload of appimage as release

* Undo temporary disabled

6 months agofix: upgrade deprecated Ubuntu runners (#1845)
Alejandro R Mosteo [Wed, 12 Feb 2025 10:39:07 +0000 (11:39 +0100)]
fix: upgrade deprecated Ubuntu runners (#1845)

20.04 is being deprecated: https://github.com/actions/runner-images/issues/11101

6 months agofix: consolidate release workflows (#1844)
Alejandro R Mosteo [Tue, 11 Feb 2025 10:24:01 +0000 (11:24 +0100)]
fix: consolidate release workflows (#1844)

* feat: consolidated single release workflow

* Disable untouched workflows

* Tweak Ubuntu ARM steps

* Add Windows installer steps

* Use setup-alire (lighter than alr-install)

* universal artifact and release job

* Windows exceptionalism (7zip instead of zip)

* Restore disabled workflows

* Self-review

6 months agofix: report unloadable pin during pin updates (#1843)
Alejandro R Mosteo [Sun, 9 Feb 2025 16:09:48 +0000 (17:09 +0100)]
fix: report unloadable pin during pin updates (#1843)

6 months agofix: clarify that -vv -d are global switches in bug box (#1842)
Alejandro R Mosteo [Sun, 9 Feb 2025 16:09:13 +0000 (17:09 +0100)]
fix: clarify that -vv -d are global switches in bug box (#1842)

* fix: clarify that -vv -d are global switches in bug box

* Fix tests

6 months agofix: PAT creation documentation (#1840)
Alejandro R Mosteo [Sat, 8 Feb 2025 16:52:16 +0000 (17:52 +0100)]
fix: PAT creation documentation (#1840)

6 months agofix: don't crash on trying to re-add a pin (#1838)
Alejandro R Mosteo [Sat, 8 Feb 2025 14:52:45 +0000 (15:52 +0100)]
fix: don't crash on trying to re-add a pin (#1838)

* Fix attempt to use unavailable pin path

* Test

* Reformat post refactor

6 months agofeat: diagnose tool mismatch due to architecture change (#1837)
Alejandro R Mosteo [Fri, 7 Feb 2025 10:51:54 +0000 (11:51 +0100)]
feat: diagnose tool mismatch due to architecture change (#1837)

* Warn on unexpected tool hash

* Test

* Fixes found by testsuite

6 months agofix: emit proper URL in publish help (#1836)
Alejandro R Mosteo [Thu, 6 Feb 2025 17:42:22 +0000 (18:42 +0100)]
fix: emit proper URL in publish help (#1836)

6 months agodoc: improve PR submission checklist
Alejandro R. Mosteo [Thu, 6 Feb 2025 15:58:24 +0000 (16:58 +0100)]
doc: improve PR submission checklist

6 months agofix: install system gprbuild when selected in assistant (#1833)
Alejandro R Mosteo [Thu, 6 Feb 2025 12:09:29 +0000 (13:09 +0100)]
fix: install system gprbuild when selected in assistant (#1833)

* Install system toolchain if missing

* test

* self-review

6 months agofeat: Ubuntu ARM builds (#1832)
Alejandro R Mosteo [Thu, 6 Feb 2025 11:26:15 +0000 (12:26 +0100)]
feat: Ubuntu ARM builds (#1832)

* Add Ubuntu ARM runner

* Debug docker troubles

* Enable in nightly

* fix regex warnings

* Debug +inf config value

* Debug code insertions

* Minimum GNAT version

* Test nightly, remove SSH step

* Add arch to artifacts

* Restore workflows

6 months agofix: revert unwanted `ada-toml` downgrade (#1827)
Alejandro R Mosteo [Thu, 23 Jan 2025 11:16:08 +0000 (12:16 +0100)]
fix: revert unwanted `ada-toml` downgrade (#1827)

6 months agofeat: improved reporting for errors in linked crates (#1824)
Alejandro R Mosteo [Thu, 23 Jan 2025 10:43:18 +0000 (11:43 +0100)]
feat: improved reporting for errors in linked crates (#1824)

6 months agofeat: make explicit Git URLs backward compatible (#1826)
Seb M'Caw [Thu, 23 Jan 2025 10:42:18 +0000 (10:42 +0000)]
feat: make explicit Git URLs backward compatible (#1826)

6 months agoDocument index breaking change (git+https)
Alejandro R. Mosteo [Tue, 21 Jan 2025 12:30:30 +0000 (13:30 +0100)]
Document index breaking change (git+https)

7 months agofeat: universal builds for macOS (#1820)
Simon Wright [Tue, 14 Jan 2025 09:37:33 +0000 (09:37 +0000)]
feat: universal builds for macOS (#1820)

* Nightly build generates macOS universal binary.

For macOS (Darwin), some users are running on Intel silicon (x86_64),
some on Apple silicon (aarch64). The purpose of this commit is to
generate a universal binary of alr for macOS, so that users won't need
to specify which version they need -- the loader will select the
appropriate binary.

To do this, a new job 'build-macos-universal' runs after the 'build'
job has completed (which implies completion of its runs on macos-13
(x86_64) and macos-14 (aarch64)).

This job dowloads & unpacks the x86_64 build to x86_64/, and the
aarch64 build to aarch64/. It then copies aarch64/ to universal/ (so
as to include the additional information, and runs lipo to create the
universal binary in universal/bin/alr. The new binary has to be marked
as executable, don't know why.

alr-nightly-bin-universal-macos.zip is created and uploaded to the
release directory.

  * .github/workflows/nightly.yml (build-macos-universal): new.

* Release build generates macOS universal binary.

For macOS (Darwin), some users are running on Intel silicon (x86_64),
some on Apple silicon (aarch64). The purpose of this commit is to
generate a universal binary of alr for macOS, so that users won't need
to specify which version they need -- the loader will select the
appropriate binary.

To do this, a new job 'build-macos-universal' runs after the 'build'
job has completed (which implies completion of its runs on macos-13
(x86_64) and macos-latest (aarch64)).

This job dowloads & unpacks the latest prerelease x86_64 build to
x86_64/, and the latest prerelease aarch64 build to aarch64/. It then
runs lipo to create the universal binary in ./bin/alr. The new binary
has to be marked as executable, don't know why.

alr-<release]-bin-universal-macos.zip is created and uploaded to the
release directory.

  * .github/workflows/ci-macos.yml (build-macos-universal): new.

* Remove superseded investigative steps.

Remove two steps that were inserted to check that no
com.apple.quarantine attributes were applied when the individual
architecture builds were downloaded (none were applied).

  * .github/workflows/nightly.yml (build-macos-universal):
      (check x86_64 attributes): remove.
      (check aarch64 attributes): remove.

7 months agofeat: setting to override trusted sites list (#1819)
Seb M'Caw [Mon, 13 Jan 2025 16:33:10 +0000 (16:33 +0000)]
feat: setting to override trusted sites list (#1819)

* Make trusted sites list configurable

* Fix Windows test failures

* Update user-changes.md

* Review

7 months agofeat: propagate verbosity in `alr test` (#1817)
Alejandro R Mosteo [Fri, 10 Jan 2025 13:15:33 +0000 (14:15 +0100)]
feat: propagate verbosity in `alr test` (#1817)

* fix: propagate verbosity to test run

* New test

7 months agofeat: setting to override source archive download command (#1815)
Seb M'Caw [Thu, 9 Jan 2025 11:23:04 +0000 (11:23 +0000)]
feat: setting to override source archive download command (#1815)

* Support command mocking on Windows

* Add tests

* Make archive download command configurable

* Fix validation of distribution.override

* Prevent configuring command settings locally

* Remove redundant Download function

* Add documentation

* Self-review

* Fix test on Windows when gunzip is only available from msys2

* Restructure documentation

* Add erroneously omitted user-changes.md entry for #1745

* Update user-changes.md

* Fix deprecated 'fail_on_error' in spellcheck workflow

* Switch to US English spellings

* Review

---------

Co-authored-by: Alejandro R. Mosteo <amosteo@unizar.es>
7 months agofeat: abbreviated dependency tree printing (#1814)
Alejandro R Mosteo [Thu, 9 Jan 2025 10:41:37 +0000 (11:41 +0100)]
feat: abbreviated dependency tree printing (#1814)

* Concise mode for dependency tree printing

* New test

* WIP: user changes

* Even more concise

No point in having an extra line for one single elided dependency, which
happens often.

* self-review

* Switch to full line with "+-- ..."

7 months agoMerge remote-tracking branch 'alire/release/2.0'
Alejandro R. Mosteo [Wed, 8 Jan 2025 12:40:00 +0000 (13:40 +0100)]
Merge remote-tracking branch 'alire/release/2.0'

7 months agofix: remove redundant parentheses inside operators (#1816)
Piotr Trojanek [Wed, 8 Jan 2025 11:40:42 +0000 (12:40 +0100)]
fix: remove redundant parentheses inside operators (#1816)

GNAT already emits a style warning when redundant parentheses appear inside logical and short-circuit operators; this warning will be soon emitted for other operators as well.

7 months agofeat: better solutions when no complete one exists (#1812)
Alejandro R Mosteo [Sun, 5 Jan 2025 22:28:45 +0000 (23:28 +0100)]
feat: better solutions when no complete one exists (#1812)

7 months agodoc: improve bug reporting template for duplicates
Alejandro R. Mosteo [Thu, 26 Dec 2024 10:01:25 +0000 (11:01 +0100)]
doc: improve bug reporting template for duplicates

8 months agofeat: search without solving and with --solve (#1799)
Alejandro R Mosteo [Thu, 28 Nov 2024 08:12:21 +0000 (09:12 +0100)]
feat: search without solving and with --solve (#1799)

* feat: search without solving and with --solve

* User changes

8 months agofix: revert unwanted changes in #1739
Alejandro R. Mosteo [Mon, 25 Nov 2024 09:53:05 +0000 (10:53 +0100)]
fix: revert unwanted changes in #1739

8 months agofeat: pull-request checklist
Alejandro R. Mosteo [Mon, 25 Nov 2024 08:44:56 +0000 (09:44 +0100)]
feat: pull-request checklist

8 months agofeat: solver refactoring (#1739)
Alejandro R Mosteo [Sat, 23 Nov 2024 09:24:53 +0000 (10:24 +0100)]
feat: solver refactoring (#1739)

* Priority-based solver

* Compiler priorities

* Fine tweaks related to pins & conflicts

* Self-review

* Fix feasibility check not considering pins

* Optimization: filter out seen linked deps

* Fix issue with search timeout

* Self-review

* Fix submodules after rebase

* Remove dependency on compare_to_case

8 months agoFix updating pins on crates which track Alire-generated files (#1788)
Seb M'Caw [Fri, 22 Nov 2024 11:27:51 +0000 (11:27 +0000)]
Fix updating pins on crates which track Alire-generated files (#1788)

* Fix updating pins on crates which track Alire-generated files

* Require user confirmation before discarding changes

* Make confirmation prompt depend on location of dirty files

9 months agofix: relocate cleaner.yml workflow to proper dir (#1794)
Alejandro R Mosteo [Mon, 18 Nov 2024 09:26:55 +0000 (10:26 +0100)]
fix: relocate cleaner.yml workflow to proper dir (#1794)

9 months agofix: remove non-existent switch from message (#1793)
Alejandro R Mosteo [Mon, 18 Nov 2024 09:16:38 +0000 (10:16 +0100)]
fix: remove non-existent switch from message (#1793)

9 months agofix: make test actions run only once (#1792)
César Sagaert [Mon, 18 Nov 2024 09:07:58 +0000 (10:07 +0100)]
fix: make test actions run only once (#1792)

Test actions would run once per test action defined, so this problem only became noticeable with more than one test action defined.

* fix: make test actions run once

* feat: log error message on test action fail

* test: ensure actions are run only once

9 months agofeat: support for Git repos with multiple remotes configured (#1782)
Seb M'Caw [Tue, 29 Oct 2024 06:05:56 +0000 (06:05 +0000)]
feat: support for Git repos with multiple remotes configured (#1782)

* Add support for git repos with multiple remotes configured

* Support Python 3.9

* Move commit_file() to helpers

* Use git_commit_file() elsewhere

9 months agofix: testing of indexed crates with `alr test --full` (#1786)
Alejandro R Mosteo [Sun, 27 Oct 2024 19:31:34 +0000 (20:31 +0100)]
fix: testing of indexed crates with `alr test --full` (#1786)

* fix: testing of remote crates with `alr test`

* Expand test to ensure all invocations work

* Improve command description

9 months agofeat: improve URI recognition (#1736)
Seb M'Caw [Thu, 24 Oct 2024 14:01:02 +0000 (15:01 +0100)]
feat: improve URI recognition (#1736)

* Improve origin URI recognition

- Consolidate a number of separate ad hoc tests for recognising URIs into Alire.URI.URI_Kind
- Add support for origin URLs with scheme "ssh://"
- Add bitbucket.org to the list of hosts recognised as git only
- Treat ".git/" suffix the same as ".git"
- Change publish command to raise errors on URLs with "file:" scheme (sidestepping a bug where the whole URL was treated as a relative path)
- Change various error messages
- Change handling of some obscure edge cases

* Fix source archives hosted on GitHub or similar

* Fix test when ssh command is unavailable

* Workaround for GNAT 10 bug

* Further improve URI recognition

* Fix existing test

* Add test for local indexes

* Add test for 'clean --cache' command

* Fix on Windows

* Fix on MacOS

* Clean up local-index-not-found test

* Consolidate 'Host' implementations

* Fix Fragment for local URLs

* Fix test

* Improve publishing test

* Fix documentation

* Remove redundant test

* Fix tests

* Fix typos

* Switch to US English

* Use crate_dirname

* Use less fragile test for git failure

* Add clarifying comments

* Treat http with non-empty userinfo as private

* Fix typo

10 months agofix: move build source info to a separate location (#1783)
Alejandro R Mosteo [Fri, 18 Oct 2024 12:24:48 +0000 (14:24 +0200)]
fix: move build source info to a separate location (#1783)

In order not to affect the output of alr --version

10 months agofix: install proper macos-14 toolchain in nightly build (#1780)
Alejandro R Mosteo [Mon, 14 Oct 2024 11:48:27 +0000 (13:48 +0200)]
fix: install proper macos-14 toolchain in nightly build (#1780)

10 months agofix: spellcheck workflow (#1779)
Seb M'Caw [Mon, 14 Oct 2024 10:53:55 +0000 (11:53 +0100)]
fix: spellcheck workflow (#1779)

* Add typos

* Fix spellcheck

* Revert "Add typos"

This reverts commit 282c3a7fd8f19b480032c4063349afc32a9a8d02.

* Change docs without typo

* Revert "Change docs without typo"

This reverts commit 4d52934c3c1e7c6bf76357b9afd8b184b7baa126.

10 months agofix: tweak workflows due to deprecations (#1778)
Alejandro R Mosteo [Sun, 13 Oct 2024 11:52:34 +0000 (13:52 +0200)]
fix: tweak workflows due to deprecations (#1778)

And generally all actions using old versions

10 months agofeat: arch/linking safeguards in workflows (#1775)
Alejandro R Mosteo [Fri, 11 Oct 2024 17:09:41 +0000 (19:09 +0200)]
feat: arch/linking safeguards in workflows (#1775)

10 months agofix: move build source info to a separate location (#1783)
Alejandro R Mosteo [Fri, 18 Oct 2024 12:24:48 +0000 (14:24 +0200)]
fix: move build source info to a separate location (#1783)

In order not to affect the output of alr --version

10 months agofix: install proper macos-14 toolchain in nightly build (#1780)
Alejandro R Mosteo [Mon, 14 Oct 2024 11:48:27 +0000 (13:48 +0200)]
fix: install proper macos-14 toolchain in nightly build (#1780)

10 months agofix: spellcheck workflow (#1779)
Seb M'Caw [Mon, 14 Oct 2024 10:53:55 +0000 (11:53 +0100)]
fix: spellcheck workflow (#1779)

* Add typos

* Fix spellcheck

* Revert "Add typos"

This reverts commit 282c3a7fd8f19b480032c4063349afc32a9a8d02.

* Change docs without typo

* Revert "Change docs without typo"

This reverts commit 4d52934c3c1e7c6bf76357b9afd8b184b7baa126.

10 months agofix: tweak workflows due to deprecations (#1778)
Alejandro R Mosteo [Sun, 13 Oct 2024 11:52:34 +0000 (13:52 +0200)]
fix: tweak workflows due to deprecations (#1778)

And generally all actions using old versions