]> _ Git - alire.git/log
alire.git
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

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 agoBump version to 2.0.3-dev
Alejandro R. Mosteo [Wed, 9 Oct 2024 16:43:29 +0000 (18:43 +0200)]
Bump version to 2.0.3-dev

10 months agoMerge branch 'release/2.0'
Alejandro R. Mosteo [Wed, 9 Oct 2024 11:23:38 +0000 (13:23 +0200)]
Merge branch 'release/2.0'

10 months agoUpdate Msys2 installer
Alejandro R. Mosteo [Wed, 9 Oct 2024 10:22:46 +0000 (12:22 +0200)]
Update Msys2 installer

10 months agoMerge branch 'release/2.0'
Alejandro R. Mosteo [Tue, 8 Oct 2024 20:33:46 +0000 (22:33 +0200)]
Merge branch 'release/2.0'

10 months agoTestsuite control condition for Unix-only (#1657)
Alejandro R Mosteo [Wed, 20 Mar 2024 15:57:36 +0000 (16:57 +0100)]
Testsuite control condition for Unix-only (#1657)

* Test control condition for Unix-only

* Fix test post-merge

10 months agodoc: fix obsolete `toolchain --install` references (#1765)
Alejandro R Mosteo [Tue, 8 Oct 2024 10:56:39 +0000 (12:56 +0200)]
doc: fix obsolete `toolchain --install` references (#1765)

10 months agoSet up environment during build preparations (#1766)
Alejandro R Mosteo [Tue, 8 Oct 2024 10:56:16 +0000 (12:56 +0200)]
Set up environment during build preparations (#1766)

* Set up environment during build preparations

* Test

10 months agofix: ability to pin a crate that 'provides' a dependency (#1771)
Alejandro R Mosteo [Mon, 7 Oct 2024 11:33:27 +0000 (13:33 +0200)]
fix: ability to pin a crate that 'provides' a dependency (#1771)

* Fix: consider 'provides' during pinning

* Test

* Fix unwanted edition in alire-roots.adb

10 months agotest: building on an air-gapped system (#1760)
Seb M'Caw [Tue, 24 Sep 2024 18:26:15 +0000 (19:26 +0100)]
test: building on an air-gapped system (#1760)

* Add test for offline build

* Move constraints to YAML file

* Remove redundant build check

* Change crates from git repos to .tgz archives

10 months agoFix CI using deprecated version of actions/upload-artifact (#1756)
Seb M'Caw [Tue, 10 Sep 2024 08:30:11 +0000 (09:30 +0100)]
Fix CI using deprecated version of actions/upload-artifact (#1756)

* Fix CI on Linux

* Fix others

* Use v4 tag

10 months agoFix early error on Windows with msys2 disabled (#1747)
Alejandro R Mosteo [Tue, 3 Sep 2024 13:33:17 +0000 (15:33 +0200)]
Fix early error on Windows with msys2 disabled (#1747)

* Fix non-absolute path returned when msys2 disabled

* Add test for the fix

* Wrong platform build friendlier message

10 months agodoc: fix obsolete `toolchain --install` references (#1765)
Alejandro R Mosteo [Tue, 8 Oct 2024 10:56:39 +0000 (12:56 +0200)]
doc: fix obsolete `toolchain --install` references (#1765)

10 months agoSet up environment during build preparations (#1766)
Alejandro R Mosteo [Tue, 8 Oct 2024 10:56:16 +0000 (12:56 +0200)]
Set up environment during build preparations (#1766)

* Set up environment during build preparations

* Test

10 months agofix: ability to pin a crate that 'provides' a dependency (#1771)
Alejandro R Mosteo [Mon, 7 Oct 2024 11:33:27 +0000 (13:33 +0200)]
fix: ability to pin a crate that 'provides' a dependency (#1771)

* Fix: consider 'provides' during pinning

* Test

* Fix unwanted edition in alire-roots.adb

10 months agofix: use /tmp dir if $HOME isn't writable (#1770)
tali auster [Wed, 2 Oct 2024 11:04:36 +0000 (04:04 -0700)]
fix: use /tmp dir if $HOME isn't writable (#1770)

* fix: use tmp dir if $HOME isn't writable

* Test for running without home

---------

Co-authored-by: Alejandro R. Mosteo <amosteo@unizar.es>
10 months agoFix: preserve attributes on file copy (#1768)
Alejandro R Mosteo [Mon, 30 Sep 2024 11:19:40 +0000 (13:19 +0200)]
Fix: preserve attributes on file copy (#1768)

* fix: preserve attributes on file copy

* Self-review

10 months agofeat: support for private indexes with `alr publish --for-private-index` (#1745)
Seb M'Caw [Tue, 24 Sep 2024 18:42:10 +0000 (19:42 +0100)]
feat: support for private indexes with `alr publish --for-private-index` (#1745)

* Add support for private indexes to "alr publish"

* Fix tests

* Support "git@" remotes

* Fix test

* Bugfix

* Update 'config' to 'settings' in 'alr init'

* Update 'config' to 'settings' elsewhere

* Rewrite documentation

* Clarify upload instructions

10 months agotest: building on an air-gapped system (#1760)
Seb M'Caw [Tue, 24 Sep 2024 18:26:15 +0000 (19:26 +0100)]
test: building on an air-gapped system (#1760)

* Add test for offline build

* Move constraints to YAML file

* Remove redundant build check

* Change crates from git repos to .tgz archives

10 months agoJSON, TOML output for tables (#1759)
Alejandro R Mosteo [Mon, 23 Sep 2024 18:12:19 +0000 (20:12 +0200)]
JSON, TOML output for tables (#1759)

* Headers

* Global option --format

* fix tables without headers

* Testsuite test

* Testsuite-found fixes

* Bump submodules, testsuite dependencies

11 months agoFix CI using deprecated version of actions/upload-artifact (#1756)
Seb M'Caw [Tue, 10 Sep 2024 08:30:11 +0000 (09:30 +0100)]
Fix CI using deprecated version of actions/upload-artifact (#1756)

* Fix CI on Linux

* Fix others

* Use v4 tag

11 months agoAdd PR cleaner workflow
Alejandro R. Mosteo [Thu, 5 Sep 2024 10:21:31 +0000 (12:21 +0200)]
Add PR cleaner workflow

11 months agoFix early error on Windows with msys2 disabled (#1747)
Alejandro R Mosteo [Tue, 3 Sep 2024 13:33:17 +0000 (15:33 +0200)]
Fix early error on Windows with msys2 disabled (#1747)

* Fix non-absolute path returned when msys2 disabled

* Add test for the fix

* Wrong platform build friendlier message

11 months agoFix syncing of releases containing broken softlinks (#1751)
Alejandro R Mosteo [Tue, 3 Sep 2024 10:51:25 +0000 (12:51 +0200)]
Fix syncing of releases containing broken softlinks (#1751)

* WIP: fix failure syncing softlinks

* Test for fix

11 months agoMerge branch 'release/2.0'
Alejandro R. Mosteo [Fri, 30 Aug 2024 11:02:38 +0000 (13:02 +0200)]
Merge branch 'release/2.0'

11 months agoRemove use of GNAT Community Edition (#1641)
Alejandro R Mosteo [Fri, 15 Mar 2024 09:16:30 +0000 (10:16 +0100)]
Remove use of GNAT Community Edition (#1641)

setup-alire@v3 no longer uses GNAT CE so we can always test with GNAT FSF.

11 months agoRename tests with old 'config' naming to 'settings' (#1746)
Alejandro R Mosteo [Fri, 30 Aug 2024 09:35:22 +0000 (11:35 +0200)]
Rename tests with old 'config' naming to 'settings' (#1746)

11 months agoBuild on Mac OS X ARM64 (#1731)
Maxim Reznik [Mon, 12 Aug 2024 14:07:37 +0000 (17:07 +0300)]
Build on Mac OS X ARM64 (#1731)

11 months agoRemove per-OS code in favor of GNAT.OS_Lib (#1717)
Alejandro R Mosteo [Wed, 10 Jul 2024 21:47:50 +0000 (23:47 +0200)]
Remove per-OS code in favor of GNAT.OS_Lib (#1717)

11 months agoEnable MacOS X M1 in nightly builds (#1716)
Maxim Reznik [Wed, 10 Jul 2024 08:36:54 +0000 (11:36 +0300)]
Enable MacOS X M1 in nightly builds (#1716)

11 months agoRename tests with old 'config' naming to 'settings' (#1746)
Alejandro R Mosteo [Fri, 30 Aug 2024 09:35:22 +0000 (11:35 +0200)]
Rename tests with old 'config' naming to 'settings' (#1746)

12 months agoAdd check that commit ID is valid hexadecimal (#1740)
Seb M'Caw [Mon, 19 Aug 2024 14:21:15 +0000 (15:21 +0100)]
Add check that commit ID is valid hexadecimal (#1740)