]> _ Git - alire.git/log
alire.git
13 months agoAdd GNAT 14 to tested versions (#1695)
Alejandro R Mosteo [Wed, 12 Jun 2024 09:59:57 +0000 (11:59 +0200)]
Add GNAT 14 to tested versions (#1695)

13 months agoFix typos and hyperlinks in doc
Yannick Moy [Thu, 6 Jun 2024 15:19:10 +0000 (17:19 +0200)]
Fix typos and hyperlinks in doc

14 months agoFix monorepo bug wrt location of generated manifest (#1684)
Alejandro R Mosteo [Thu, 30 May 2024 11:14:29 +0000 (13:14 +0200)]
Fix monorepo bug wrt location of generated manifest (#1684)

* Fix monorepo bug wrt location of generated manifest

When deploying crates, to avoid confusion, we replace the packaged manifest (if
any) with the one from the index, which is the one used anyway. For monorepos,
the replacement was placed at the repo root instead of at the crate location.

* Use macOS 12 to avoid linking problems

* Self-review

16 months agoFix non-ASCII char used when --no-color in effect (#1661)
Alejandro R Mosteo [Mon, 25 Mar 2024 10:54:54 +0000 (11:54 +0100)]
Fix non-ASCII char used when --no-color in effect (#1661)

17 months agoUse oldest Ubuntu LTS for releases (#1647)
Alejandro R Mosteo [Mon, 18 Mar 2024 12:01:16 +0000 (13:01 +0100)]
Use oldest Ubuntu LTS for releases (#1647)

17 months agoRelease 2.0.1 preparations (#1658)
Alejandro R Mosteo [Wed, 20 Mar 2024 15:59:38 +0000 (16:59 +0100)]
Release 2.0.1 preparations (#1658)

17 months agoFix installation of binary crates containing softlinks (#1653)
Alejandro R Mosteo [Wed, 20 Mar 2024 11:14:43 +0000 (12:14 +0100)]
Fix installation of binary crates containing softlinks (#1653)

* Force creation of missing soft link

* More detailed test of softlink installation

17 months agodev/build.sh: control build jobs with $ALIRE_BUILD_JOBS (#1651)
tali auster [Mon, 18 Mar 2024 16:12:16 +0000 (10:12 -0600)]
dev/build.sh: control build jobs with $ALIRE_BUILD_JOBS (#1651)

This is just a minor quality-of-life improvement for packaging. Note
that this also quotes the argument to echo so that if (somehow)
$ALIRE_OS were set to a malicious value, no harm could be done.

17 months agoUpdate msys2 installer (#1648)
Alejandro R Mosteo [Mon, 18 Mar 2024 12:00:56 +0000 (13:00 +0100)]
Update msys2 installer (#1648)

* Update msys2 installer

* Ensure msys2 from commit is tested

17 months agoAlire.Utils.Regex: initialize matches explicitly (#1637)
Alejandro R Mosteo [Thu, 14 Mar 2024 11:11:12 +0000 (12:11 +0100)]
Alire.Utils.Regex: initialize matches explicitly (#1637)

17 months agoRename switch arguments to indicate expected type (#1650)
Francesc Rocher [Mon, 18 Mar 2024 17:59:49 +0000 (18:59 +0100)]
Rename switch arguments to indicate expected type (#1650)

In commands with options that admit arguments, like '--prefix' in
'alr install', is useful to provide an argument name in the command
help that gives a hint of the expected type.

For example, 'alr install -h' shows the message:
====
OPTIONS
   --prefix=ARG   Override installation prefix (default is ...)
====

When changed to:
====
OPTIONS
   --prefix=DIR   Override installation prefix (default is ...)
====

the 'DIR' name of the argument immediately says what is expected in this
option. In cases where this is not so obvious, it helps even more.
For example, in 'alr build -h':
====
OPTIONS
   --profiles=LIST     Comma-separated list of <crate>=<profile> values (see description)
   --stop-after=STAGE  Build stage after which to stop (see description)
====

is a quick remainder of what is expected in that options.

17 months agoEnforce usage of Sementic_Versioning when printing Alire/Alr version (#1643) (#1652)
Fabien Chouteau [Mon, 18 Mar 2024 17:55:29 +0000 (18:55 +0100)]
Enforce usage of Sementic_Versioning when printing Alire/Alr version (#1643) (#1652)

* Enforce usage of Sementic_Versioning when printing Alire/Alr version

To ensure a consistent formatting whatever the version.
The version string is now private, only the semver type is visible.

* Enforce usage of Sementic_Versioning for index versions

17 months agoMove `upgrading.md` to `doc/` dir to make it available on the website (#1645)
Fabien Chouteau [Fri, 15 Mar 2024 09:19:21 +0000 (10:19 +0100)]
Move `upgrading.md` to `doc/` dir to make it available on the website (#1645)

17 months agoAlire.Features: restore proper config deprecation (#1640)
Alejandro R Mosteo [Fri, 15 Mar 2024 09:16:54 +0000 (10:16 +0100)]
Alire.Features: restore proper config deprecation (#1640)

17 months agouser-changes.md: remove -dev from the user changes section (#1644)
Fabien Chouteau [Fri, 15 Mar 2024 09:16:07 +0000 (10:16 +0100)]
user-changes.md: remove -dev from the user changes section (#1644)

17 months agoMerge remote-tracking branch 'alire/master' into release/2.0
Alejandro R. Mosteo [Tue, 12 Mar 2024 21:27:05 +0000 (22:27 +0100)]
Merge remote-tracking branch 'alire/master' into release/2.0

17 months agoBump version to 2.0
Alejandro R. Mosteo [Tue, 12 Mar 2024 21:26:11 +0000 (22:26 +0100)]
Bump version to 2.0

17 months agoDon't say unknown crate for abstract crates in `alr get` (#1633)
Alejandro R Mosteo [Tue, 12 Mar 2024 16:35:07 +0000 (17:35 +0100)]
Don't say unknown crate for abstract crates in `alr get` (#1633)

* Inform about providers in `alr get`

* Test for the change

17 months agoClassify builds by release milestone (#1632)
Alejandro R Mosteo [Tue, 12 Mar 2024 16:02:02 +0000 (17:02 +0100)]
Classify builds by release milestone (#1632)

17 months agoRemainders of the config --> settings refactor (#1631)
Alejandro R Mosteo [Tue, 12 Mar 2024 11:36:14 +0000 (12:36 +0100)]
Remainders of the config --> settings refactor (#1631)

* Remainders of the config --> settings refactor

* Fix Windows-only builtins

17 months agoRefactor `--config` as `--settings` (#1627)
Alejandro R Mosteo [Mon, 11 Mar 2024 15:41:10 +0000 (16:41 +0100)]
Refactor `--config` as `--settings` (#1627)

* Refactor `ALR_CONFIG` to `ALIRE_SETTINGS`

* Replace --config with --settings

* Code review

* Post-merge fix

17 months ago`config.toml` --> `settings.toml` (#1626)
Alejandro R Mosteo [Mon, 11 Mar 2024 15:04:56 +0000 (16:04 +0100)]
`config.toml` --> `settings.toml` (#1626)

* config.toml --> settings.toml

* Prepend comment in `config.toml` about migration

* Remove file touching

17 months agoRefactor `ALR_CONFIG` to `ALIRE_SETTINGS_DIR` (#1625)
Alejandro R Mosteo [Mon, 11 Mar 2024 13:24:46 +0000 (14:24 +0100)]
Refactor `ALR_CONFIG` to `ALIRE_SETTINGS_DIR` (#1625)

* Refactor `ALR_CONFIG` to `ALIRE_SETTINGS`

* Code review

17 months agoMore conventional location for settings in Windows (#1624)
Alejandro R Mosteo [Mon, 11 Mar 2024 11:49:39 +0000 (12:49 +0100)]
More conventional location for settings in Windows (#1624)

To avoid mixing top levels, also nest the cache too.

17 months agoRefactor `Alire.Config.*` as `Alire.Settings.*` (#1622)
Alejandro R Mosteo [Mon, 11 Mar 2024 11:34:16 +0000 (12:34 +0100)]
Refactor `Alire.Config.*` as `Alire.Settings.*` (#1622)

* Refactor `Alire.Config.*` as `Alire.Settings.*`

* Refactor Windows-only files

17 months agoMissing dependencies in testsuite documentation. (#1620)
Francesc Rocher [Sat, 9 Mar 2024 18:24:55 +0000 (19:24 +0100)]
Missing dependencies in testsuite documentation. (#1620)

* Missing dependencies in testsuite documentation.

Required package 'pexpect' is not installed as a dependency of
'e3-testsuite', so is has to be explicitly installed.

Neither 'e3-testsuite' nor 'e3-core' depend on it:

$ pip show e3-testsuite e3-core
Name: e3-testsuite
Version: 26.0
Summary: E3 testsuite
Home-page:
Author: AdaCore
Author-email: info@adacore.com
License: GPLv3
Location: /home/ada/opt/alire/venv/lib/python3.10/site-packages
Requires: e3-core
Required-by:
---
Name: e3-core
Version: 22.4.0
Summary: E3 core. Tools and library for building and testing software
Home-page: https://github.com/AdaCore/e3-core
Author: AdaCore
Author-email: info@adacore.com
License: GPLv3
Location: /home/ada/opt/alire/venv/lib/python3.10/site-packages
Requires: colorama, ld, packaging, psutil, python-dateutil, pyyaml, requests, requests-cache, requests-toolbelt, setuptools, stevedore, tqdm
Required-by: e3-testsuite
* Install pip dependencies using requirements.txt

17 months agoHandle config switch missing argument exceptions (#1619)
Francesc Rocher [Sat, 9 Mar 2024 13:47:22 +0000 (14:47 +0100)]
Handle config switch missing argument exceptions (#1619)

Both 'alr -c' and 'alr --config' throw exceptions because a required
parameter is missing.

This fix handle missing parameter of config switch in the same way as, for
example, 'alr -C' and 'alr --chdir': an error message informs the user that a
required parameter is missing.

17 months agoClarify remark about `--force` in `alr install --help` (#1618)
Manuel [Sat, 9 Mar 2024 13:44:34 +0000 (14:44 +0100)]
Clarify remark about `--force` in `alr install --help` (#1618)

Since it affects the place where the argument can be used, the user
has to be aware of that.

17 months agoNew `alr settings` command to replace `alr config` (#1617)
Fabien Chouteau [Sat, 9 Mar 2024 13:16:05 +0000 (14:16 +0100)]
New `alr settings` command to replace `alr config` (#1617)

This change is introduced to tackle the confusion between the
configuration of the Alire commands and operations, and the
configuration of crates.

`alr config` is still available and should work as before with the
exception of a deprecation warning message.

17 months agoRemove .md extension from internal documentation links (#893) (#1616)
Jeremy Grosser [Fri, 8 Mar 2024 09:33:33 +0000 (01:33 -0800)]
Remove .md extension from internal documentation links (#893) (#1616)

17 months agoRemove `toolchain --install/--uninstall/--install-dir` (#1614)
Alejandro R Mosteo [Thu, 7 Mar 2024 11:21:54 +0000 (12:21 +0100)]
Remove `toolchain --install/--uninstall/--install-dir` (#1614)

* Remove --[un]install, --install-dir

* Patch tests

* User changes

* review of --install et al. removal

* Fix test broken by new crate hash

17 months agoOverride distro via config key (#1610)
Alejandro R Mosteo [Mon, 4 Mar 2024 10:41:15 +0000 (11:41 +0100)]
Override distro via config key (#1610)

17 months agoDon't try to obtain the parent dir of '/' in tmp cleanup (#1609)
Alejandro R Mosteo [Mon, 4 Mar 2024 10:40:53 +0000 (11:40 +0100)]
Don't try to obtain the parent dir of '/' in tmp cleanup (#1609)

17 months agoDocument more configuration details (#1611)
Alejandro R Mosteo [Mon, 4 Mar 2024 10:40:31 +0000 (11:40 +0100)]
Document more configuration details (#1611)

17 months agoVersion bumps for 2.0-rc1
Alejandro R. Mosteo [Thu, 29 Feb 2024 10:56:55 +0000 (11:56 +0100)]
Version bumps for 2.0-rc1

17 months agoRequire explicit `binary=true` for all binary origins (#1598)
Alejandro R Mosteo [Thu, 29 Feb 2024 10:40:38 +0000 (11:40 +0100)]
Require explicit `binary=true` for all binary origins (#1598)

* Package to track future features

* Loading metadata and explicit binary

17 months agoBug box in case of Program_Error and related tweaks (#1595)
Alejandro R Mosteo [Wed, 28 Feb 2024 18:53:57 +0000 (19:53 +0100)]
Bug box in case of Program_Error and related tweaks (#1595)

* bug box in case of Program_Error

* Fix optionally appearing address in error location

* alire-errors.ads: typo

17 months agoMake msys live inside overridden config path by default (#1589)
Alejandro R Mosteo [Wed, 28 Feb 2024 18:21:38 +0000 (19:21 +0100)]
Make msys live inside overridden config path by default (#1589)

* Don't run OS initialization during elaboration

As this makes impossible to tweak such initialization with `alr config`.

* Make msys live inside overriden config path by default

* Better explanation in alr.py

* Fix config loading before Windows builtins

17 months agoBump toml_slicer dependency (#1597)
Alejandro R Mosteo [Tue, 27 Feb 2024 16:48:54 +0000 (17:48 +0100)]
Bump toml_slicer dependency (#1597)

17 months agoReinstate lost style checks (#1591)
Alejandro R Mosteo [Tue, 27 Feb 2024 11:45:25 +0000 (12:45 +0100)]
Reinstate lost style checks (#1591)

* Reinstate lost style checks

* Explicit style checks and corresponding fixes

17 months agoRelocate cache with config builtin `cache.dir` (#1593)
Alejandro R Mosteo [Tue, 27 Feb 2024 11:39:55 +0000 (12:39 +0100)]
Relocate cache with config builtin `cache.dir` (#1593)

17 months agocatalog spec: update supported `os` and `distribution` values (#1594)
Alejandro R Mosteo [Tue, 27 Feb 2024 11:21:30 +0000 (12:21 +0100)]
catalog spec: update supported `os` and `distribution` values (#1594)

* Update the supported values of the os and distribution parameters.

* Use new `distribution-unknown`

---------

Co-authored-by: John Serock <1468970+serock@users.noreply.github.com>
17 months agoPlatforms: `distribution-unknown` to better match... (#1590)
Alejandro R Mosteo [Tue, 27 Feb 2024 11:12:46 +0000 (12:12 +0100)]
Platforms: `distribution-unknown` to better match... (#1590)

...its variable name which is `distribution`

17 months agoDon't run OS initialization during elaboration (#1592)
Alejandro R Mosteo [Tue, 27 Feb 2024 10:54:23 +0000 (11:54 +0100)]
Don't run OS initialization during elaboration (#1592)

As this makes impossible to tweak such initialization with `alr config`.

17 months agoInterpret `environment` entries as path parts (#1483)
Alejandro R Mosteo [Mon, 26 Feb 2024 19:38:08 +0000 (20:38 +0100)]
Interpret `environment` entries as path parts (#1483)

* Intepret environment values as paths

This is the likely intended behavior. Down the road we can have a way to have
literal values in these strings.

* Fixes for Windows brokenness

17 months agoEnsure gh token is retrieved before submission steps (#1581)
Alejandro R Mosteo [Mon, 26 Feb 2024 10:59:40 +0000 (11:59 +0100)]
Ensure gh token is retrieved before submission steps (#1581)

17 months agoSystem.Macports: Less breaking behavior... (#1583)
Alejandro R Mosteo [Mon, 26 Feb 2024 10:59:21 +0000 (11:59 +0100)]
System.Macports: Less breaking behavior... (#1583)

...on outdated port definitions

17 months agoPrintenv help: document --wincmd recipe (#1584)
Alejandro R Mosteo [Mon, 26 Feb 2024 10:59:01 +0000 (11:59 +0100)]
Printenv help: document --wincmd recipe (#1584)

17 months agoExplain how to use printenv more safely (#1585)
Alejandro R Mosteo [Mon, 26 Feb 2024 10:57:21 +0000 (11:57 +0100)]
Explain how to use printenv more safely (#1585)

17 months agoNew `alr edit --select-editor` (#1586)
Alejandro R Mosteo [Mon, 26 Feb 2024 10:55:54 +0000 (11:55 +0100)]
New `alr edit --select-editor` (#1586)

17 months agoClearer identification of missing dependencies (#1588)
Alejandro R Mosteo [Mon, 26 Feb 2024 10:55:29 +0000 (11:55 +0100)]
Clearer identification of missing dependencies (#1588)

When a complete solution is printed (`alr show|with --solve`), the "external"
section is now named "missing" (which is what it actually meant).

When a diff is show that contains missing dependencies, a new section is
appended containing separately all missing dependencies, labeled as such:
```
$ alr -f with hello unobtanium
Requested changes:

   ✓ hello      ^1.0.2 (add)
   ✓ unobtanium *      (add)

Changes to dependency solution:

   New solution is incomplete.
   +        hello      1.0.2 (new)
   Missing:
   +❗      unobtanium *     (new,missing:unknown)
```

17 months agoMake sure error messages from Finalization are displayed to the user (#1580)
Fabien Chouteau [Fri, 23 Feb 2024 17:18:41 +0000 (18:18 +0100)]
Make sure error messages from Finalization are displayed to the user (#1580)

17 months agoNew `build --stop-after` (#1573)
Alejandro R Mosteo [Fri, 23 Feb 2024 17:16:36 +0000 (18:16 +0100)]
New `build --stop-after` (#1573)

* Basis for `build --stop-after`

* Implement build stages

* Test for new feature

* User changes

* Remove `sudo` that isn't available on Windows

* Code review

* s/Build_Stages/Stop_Points/

17 months agoAdd support for index access through ssh (#1571)
Daly Brown [Fri, 23 Feb 2024 17:15:09 +0000 (12:15 -0500)]
Add support for index access through ssh  (#1571)

* Add support for ssh

* Test adding indices and pins using ssh

* On-line test for git-over-ssh indexes

---------

Co-authored-by: Alejandro R. Mosteo <amosteo@unizar.es>
17 months agoAlire.Index_On_Disk: improve error message (#1579)
Fabien Chouteau [Fri, 23 Feb 2024 11:31:48 +0000 (12:31 +0100)]
Alire.Index_On_Disk: improve error message (#1579)

17 months agoAlr.Commands.Search: change default behavior to include properties (#1575)
Fabien Chouteau [Fri, 23 Feb 2024 10:39:46 +0000 (11:39 +0100)]
Alr.Commands.Search: change default behavior to include properties (#1575)

* Alr.Commands.Search: change default behavior to include properties

This patch comes from a comment of a user looking for gnatpp in Alire.
gnatpp is part of the libabalang_tools crate and a 1.x `alr search gnatpp`
returns nothing. The reason that by default only the release name and
descriptions are searched. This is quite a bad user interaction.

Here we change the default behavior to search in all properties of a
release, including tags, executables, website, etc.

We also display the list of properties that match the pattern.

Searching in names and descriptions only is still possible with the
--crates switch.

* Alr.Commands.Search: use a set rather than a vector for matching props

17 months agoAlr.Commands.Edit: user choice for multiple editors (#1577)
Fabien Chouteau [Fri, 23 Feb 2024 10:23:37 +0000 (11:23 +0100)]
Alr.Commands.Edit: user choice for multiple editors (#1577)

Part of #1137.

18 months agoImprovements to messages during dependency updates (#1569)
Alejandro R Mosteo [Mon, 19 Feb 2024 12:37:03 +0000 (13:37 +0100)]
Improvements to messages during dependency updates (#1569)

* Fix bugs causing spurious diffs on update

Solutions were the same, but some types internally where using pointers instead
of pointed objects for comparison.

WIP

* Don't attempt redundant system package installation

* Inform of pin checkouts/updates as for regular crates

* Ensure created folders remain the same

* Fix testsuite index for deterministic make version

18 months agoAttempt at working around flakiness in Windows workflow (#1570)
Alejandro R Mosteo [Sat, 17 Feb 2024 11:05:33 +0000 (12:05 +0100)]
Attempt at working around flakiness in Windows workflow (#1570)

That mv operation fails from time to time for unknown reasons.

18 months agoNew workflow to check GNAT CE builds (#1566)
Alejandro R Mosteo [Fri, 16 Feb 2024 13:38:54 +0000 (14:38 +0100)]
New workflow to check GNAT CE builds (#1566)

* New workflow to check GNAT CE builds

* Fix compilation with CE 2020

18 months agoMinor clean-ups and clarifications (#1568)
Alejandro R Mosteo [Fri, 16 Feb 2024 13:05:20 +0000 (14:05 +0100)]
Minor clean-ups and clarifications (#1568)

18 months agoBetter documentation for binary origins (#1546)
Alejandro R Mosteo [Fri, 16 Feb 2024 12:18:51 +0000 (13:18 +0100)]
Better documentation for binary origins (#1546)

* Document binary origins

* Test for explicit binary origin

18 months agoReport detected system package manager in `alr version` (#1565)
Alejandro R Mosteo [Fri, 16 Feb 2024 10:56:15 +0000 (11:56 +0100)]
Report detected system package manager in `alr version` (#1565)

* Report the system package manager in `alr version`

* Also report distro detection disabling

* Use a separate system deployer in unknown systems

Instead of defaulting to apt.

* Distinguish undetected exec from unknown exec name

18 months agoExplicitly check GCC versions (#1562)
Alejandro R Mosteo [Thu, 15 Feb 2024 17:04:19 +0000 (18:04 +0100)]
Explicitly check GCC versions (#1562)

* Explicitly check all GCC versions we want

* Remove unneeded `aliased`

* Try to use safer reference

* Workaround for GNAT 13 troubles with expr. funcs.

* Fix test index to use deterministic external gnat version

18 months agoRemove build warnings in si_units on Windows (#1564)
Alejandro R Mosteo [Thu, 15 Feb 2024 12:45:51 +0000 (13:45 +0100)]
Remove build warnings in si_units on Windows (#1564)

18 months agoTest for full publishing workflow (#1538)
Alejandro R Mosteo [Thu, 15 Feb 2024 10:18:42 +0000 (11:18 +0100)]
Test for full publishing workflow (#1538)

* Test for automated publishing

This test is dependent on a remote repo (`test-index`) on which a PR is opened
during testing, so we better run this one sporadically and locally, or in a
single selected CI configuration.

* Self-review

* Use `ALIRE_TESTSUITE_*` for testsuite env variables

18 months agoFix bugs related to tmp file creation in corner cases (#1561)
Alejandro R Mosteo [Wed, 14 Feb 2024 09:40:11 +0000 (10:40 +0100)]
Fix bugs related to tmp file creation in corner cases (#1561)

* fix: tmp dir being defined but not existing

* Improved log message for temp file creation

* Prevent deleting a tmp folder not created by us

18 months agoShow default temp folder in `alr version` (#1560)
Alejandro R Mosteo [Wed, 14 Feb 2024 09:35:45 +0000 (10:35 +0100)]
Show default temp folder in `alr version` (#1560)

18 months agoAdd bug report template (#1559)
Alejandro R Mosteo [Tue, 13 Feb 2024 13:10:59 +0000 (14:10 +0100)]
Add bug report template (#1559)

18 months agoRefactor return expression causing trouble with GNAT 13 (#1557)
Alejandro R Mosteo [Fri, 9 Feb 2024 11:33:50 +0000 (12:33 +0100)]
Refactor return expression causing trouble with GNAT 13 (#1557)

18 months agoRemove blue background setting from Windows shortcut (#1555)
Fabien Chouteau [Thu, 8 Feb 2024 18:03:25 +0000 (19:03 +0100)]
Remove blue background setting from Windows shortcut (#1555)

The shortcut from the Windows installer was setting a background color for PowerShell command prompt. The idea was to match the look of the PowerShell you would normally start, and avoid confusion with the CMD prompt which has a black background. But that didn't work very well as the background color just disappeared when running commands. Also it seems like Windows now uses a black background for the PowerShell anyway.

18 months agoFix bugs causing spurious diffs on updates without changes (#1550)
Alejandro R Mosteo [Wed, 31 Jan 2024 17:24:10 +0000 (18:24 +0100)]
Fix bugs causing spurious diffs on updates without changes (#1550)

* Fix bugs causing spurious diffs on update

Solutions were the same, but some types internally where using pointers instead
of pointed objects for comparison.

WIP

* Separate style checking from experimental Ada switches

18 months agoBugfix: exception when trying to select a tool without the assistant while the config...
Alejandro R Mosteo [Tue, 30 Jan 2024 10:16:51 +0000 (11:16 +0100)]
Bugfix: exception when trying to select a tool without the assistant while the configured one is missing (#1551)

* Fix exception when trying to select a toolchain

This problem arised only if trying to select a toolchain with --select <tool>
while the configured tool was missing on disk.

* Test for fix

18 months agoDocumentation about upgrading to alr 2.x (#1547)
Alejandro R Mosteo [Mon, 29 Jan 2024 11:15:57 +0000 (12:15 +0100)]
Documentation about upgrading to alr 2.x (#1547)

18 months agoFix regex for version detection of Fedora externals (#1545)
Alejandro R Mosteo [Mon, 29 Jan 2024 11:09:03 +0000 (12:09 +0100)]
Fix regex for version detection of Fedora externals (#1545)

* Fix improper regex in rpm-based detector

* Test for bugfix

* Document pending breaking changes

These require an `alr` or index version bump

* Self-review

18 months agoDon't fail fast in toolchain matrix CI checks
Alejandro R. Mosteo [Fri, 26 Jan 2024 16:35:05 +0000 (17:35 +0100)]
Don't fail fast in toolchain matrix CI checks

18 months agoRemove benign warning during toolchain discovery (#1540)
Alejandro R Mosteo [Wed, 24 Jan 2024 20:29:48 +0000 (21:29 +0100)]
Remove benign warning during toolchain discovery (#1540)

18 months agoUse e3 facilities for test skipping (#1537)
Alejandro R Mosteo [Tue, 23 Jan 2024 12:50:20 +0000 (13:50 +0100)]
Use e3 facilities for test skipping (#1537)

18 months agoMove To_Portable to body and make it a regular function (#1541)
Daly Brown [Tue, 23 Jan 2024 09:36:35 +0000 (04:36 -0500)]
Move To_Portable to body and make it a regular function (#1541)

18 months agoStreamline index forking (#1535)
Alejandro R Mosteo [Mon, 22 Jan 2024 19:19:38 +0000 (20:19 +0100)]
Streamline index forking (#1535)

18 months agoHarmonize and document test modifier variables (#1536)
Alejandro R Mosteo [Mon, 22 Jan 2024 19:18:54 +0000 (20:18 +0100)]
Harmonize and document test modifier variables (#1536)

18 months agoFix deployment over pre-existing dependency dir (#1542)
Alejandro R Mosteo [Mon, 22 Jan 2024 19:18:22 +0000 (20:18 +0100)]
Fix deployment over pre-existing dependency dir (#1542)

19 months agoFix redeploying of toolchains (#1533)
Alejandro R Mosteo [Fri, 19 Jan 2024 17:38:30 +0000 (18:38 +0100)]
Fix redeploying of toolchains (#1533)

* Test that fails prior to bugfix

* Fix for cache invalidation

An unrelated bug is fixed that happened when not using an actual binary crate
for a compiler in the testsuite.

19 months agoBetter location for large downloads (#1528)
Alejandro R Mosteo [Tue, 16 Jan 2024 10:43:55 +0000 (11:43 +0100)]
Better location for large downloads (#1528)

Discard $XDG_CACHE_HOME in favor of $XDG_DATA_HOME, as some distro guidelines
erroneously propose to mount the cache on tmpfs.

19 months agoDocument PAT creation and hint in `alr publish` help (#1529)
Alejandro R Mosteo [Tue, 16 Jan 2024 10:40:06 +0000 (11:40 +0100)]
Document PAT creation and hint in `alr publish` help (#1529)

19 months agoAdd missing with statements for Ada.Directories (#1525)
Rowan Walshe [Mon, 15 Jan 2024 15:51:37 +0000 (15:51 +0000)]
Add missing with statements for Ada.Directories (#1525)

19 months agoReport the name of an unreadable directory (#1523)
Simon Wright [Mon, 15 Jan 2024 13:15:55 +0000 (13:15 +0000)]
Report the name of an unreadable directory (#1523)

* Report the name of an unreadable directory.

  * src/alire/alire-index_on_disk.adb (New_Handler.Process_Local_Index):
      If the Path isn't a readable directory (e.g. because it doesn't
      exist), add it to the message in Outcome_Failure.
  * testsuite/tests/index/local-index-not-found/test.py: updated for
      new 'not a readable directory' report format.

* Handle Windows separator doubling.

20 months agoBuild appImage with GNAT 10 on Ubuntu 20.04 (#1519)
John Serock [Mon, 18 Dec 2023 18:09:38 +0000 (13:09 -0500)]
Build appImage with GNAT 10 on Ubuntu 20.04 (#1519)

20 months agoUpdate list of supported platforms in index spec (#1513)
John Serock [Mon, 11 Dec 2023 17:43:39 +0000 (12:43 -0500)]
Update list of supported platforms in index spec (#1513)

20 months agoMerge pull request #1514 from atalii/doc-chdir
Fabien Chouteau [Wed, 6 Dec 2023 13:53:37 +0000 (14:53 +0100)]
Merge pull request #1514 from atalii/doc-chdir

Document --chdir in user-changes

20 months agoDocument --chdir in user-changes
Tali Auster [Tue, 5 Dec 2023 15:43:16 +0000 (08:43 -0700)]
Document --chdir in user-changes

21 months agoOffer uninstalled compiler as fallback with warning (#1508)
Alejandro R Mosteo [Tue, 21 Nov 2023 10:13:56 +0000 (11:13 +0100)]
Offer uninstalled compiler as fallback with warning (#1508)

* Allow solving with unistalled tools as fallback

* Fix precedence of installed compiler over remote ones

* Add warning in solution diff about toolchain download

* Fallback on installed compiler over uninstalled one

This is after checking that the preferred compiler cannot fulfill the compiler
dependency.

* Tweaks to restore former behaviors

* Fix test that inadvertently used virtual crate

It should have been real all along without alternatives

* Rebase tweaks

* Reword information message

21 months agoBump version post-beta1
Alejandro R. Mosteo [Thu, 16 Nov 2023 08:34:20 +0000 (09:34 +0100)]
Bump version post-beta1

21 months agoLoad configuration earlier from proper location (#1501)
Alejandro R Mosteo [Thu, 16 Nov 2023 06:23:22 +0000 (07:23 +0100)]
Load configuration earlier from proper location (#1501)

* Move configuration loading earlier

Also make sure it's impossible to use configuration before the proper path is
set.

* New test

* Better encapsulation

* Windows fix

21 months agoFilter out Unicode in SI_Unit conversion (#1506)
Alejandro R Mosteo [Wed, 15 Nov 2023 13:48:32 +0000 (14:48 +0100)]
Filter out Unicode in SI_Unit conversion (#1506)

21 months agoNew warning when external GNAT selected but another compiler version is needed (...
Alejandro R Mosteo [Wed, 15 Nov 2023 13:47:52 +0000 (14:47 +0100)]
New warning when external GNAT selected but another compiler version is needed (#1500)

* New warning for externally selected gnat

* New test

21 months agoFix regression when `alr with`ing a virtual crate without actual releases (#1507)
Alejandro R Mosteo [Wed, 15 Nov 2023 13:47:26 +0000 (14:47 +0100)]
Fix regression when `alr with`ing a virtual crate without actual releases (#1507)

* Do not report a virtual crate as inexistent

* Test to avoid future regression

21 months agoUse Ada quotes in test skeletons
Alejandro R. Mosteo [Tue, 14 Nov 2023 16:40:14 +0000 (17:40 +0100)]
Use Ada quotes in test skeletons

21 months agoAmend style switches (expand -gnatyg). (#1497)
Simon Wright [Tue, 14 Nov 2023 13:05:36 +0000 (13:05 +0000)]
Amend style switches (expand -gnatyg). (#1497)

-gnatyg is "check standard GNAT style rules, same as ydISux", but in
GCC 14 it will include a new switch, -gnatyz (check parentheses not
required by operator precedence rules) which will mean that use of
extra parens to clarify intent without deep knowledge of the rules
will trigger fatal warnings; for example in alire-conditional_trees.adb

   function Contains_ORs (This : Tree) return Boolean is
      ((not This.Is_Empty) and then This.Root.Contains_ORs);
       ^

Refer GCC Bugzilla PR 112446.

  * alire_common.gpr (Style_Check_Switches): Remove -gnatyg and replace
    by the pre-GCC 14 equivalent.

21 months agoFix unwanted stack trace on `alr publish --tar` with broken manifest (#1499)
Alejandro R Mosteo [Tue, 14 Nov 2023 06:42:03 +0000 (07:42 +0100)]
Fix unwanted stack trace on `alr publish --tar` with broken manifest (#1499)

* Avoid unhandled exception in `alr publish --tar`

Fixes #1214

Also unify a couple of error messages

* Update test to check this fix

* Self-review