]> _ Git - alire.git/log
alire.git
21 months agoDiagnose missing executable when running an action (#1493)
Alejandro R Mosteo [Wed, 8 Nov 2023 11:38:29 +0000 (12:38 +0100)]
Diagnose missing executable when running an action (#1493)

* Fix command not found in actions

* New test

21 months agoDon't trigger `alr` help on `alr exec -- command --help` (#1491)
Alejandro R Mosteo [Wed, 8 Nov 2023 10:58:34 +0000 (11:58 +0100)]
Don't trigger `alr` help on `alr exec -- command --help` (#1491)

* Fix "-h/--help" being catched after "--"

* Bump clic dependency

* Fix test on Windows

21 months agoSimpler error on `alr with` for unknown crates (#1489)
Alejandro R Mosteo [Mon, 6 Nov 2023 10:28:14 +0000 (11:28 +0100)]
Simpler error on `alr with` for unknown crates (#1489)

21 months agoGenerate loadable project during `alr init` (#1486)
Alejandro R Mosteo [Mon, 6 Nov 2023 10:15:17 +0000 (11:15 +0100)]
Generate loadable project during `alr init` (#1486)

21 months agoFix list of default licenses (#1490)
Alejandro R Mosteo [Mon, 6 Nov 2023 10:14:55 +0000 (11:14 +0100)]
Fix list of default licenses (#1490)

* Remove duplication in error message output

* Early detect bad license among choices

* Fix bad license

* Fix error deduplication

* New test for default licenses

21 months agoRename AppImage workflow job
Alejandro R. Mosteo [Fri, 27 Oct 2023 12:34:11 +0000 (14:34 +0200)]
Rename AppImage workflow job

21 months agoimplement -C/--chdir flag (#1479)
tali auster [Fri, 27 Oct 2023 09:25:52 +0000 (03:25 -0600)]
implement -C/--chdir flag (#1479)

* implement -C/--chdir flag

* use `alr` instead of Alire in help text.

* test --chdir flag

* clean up with-chdir test

21 months agoFix documented default prefix for install (#1482)
Manuel [Thu, 26 Oct 2023 16:19:16 +0000 (18:19 +0200)]
Fix documented default prefix for install (#1482)

See comments in issue #1481

21 months agoHonor the NO_COLOR environment variable (#1480)
Manuel [Mon, 23 Oct 2023 12:18:33 +0000 (14:18 +0200)]
Honor the NO_COLOR environment variable (#1480)

According to https://no-color.org/

22 months agoremove duplicate section of user-changes.md (#1477)
tali auster [Fri, 20 Oct 2023 07:26:16 +0000 (01:26 -0600)]
remove duplicate section of user-changes.md (#1477)

"Enable shared dependencies by default" was in there twice.

22 months agoSeparate AppImage to own workflow (#1475)
Alejandro R Mosteo [Thu, 19 Oct 2023 15:04:21 +0000 (17:04 +0200)]
Separate AppImage to own workflow (#1475)

22 months agoMerge remote-tracking branch 'alire/release/2.0'
Alejandro R. Mosteo [Thu, 19 Oct 2023 13:33:12 +0000 (15:33 +0200)]
Merge remote-tracking branch 'alire/release/2.0'

22 months agoBump version to 2.0-beta1
Alejandro R. Mosteo [Tue, 17 Oct 2023 09:51:16 +0000 (11:51 +0200)]
Bump version to 2.0-beta1

22 months agoBetter triggers for actions on release creation
Alejandro R. Mosteo [Tue, 17 Oct 2023 09:38:12 +0000 (11:38 +0200)]
Better triggers for actions on release creation

22 months agoBetter triggers for actions on release creation
Alejandro R. Mosteo [Tue, 17 Oct 2023 09:38:12 +0000 (11:38 +0200)]
Better triggers for actions on release creation

22 months agoMerge remote-tracking branch 'alire/master' into release/2.0
Alejandro R. Mosteo [Tue, 17 Oct 2023 09:24:31 +0000 (11:24 +0200)]
Merge remote-tracking branch 'alire/master' into release/2.0

22 months agoEnable shared dependencies by default (#1449)
Alejandro R Mosteo [Tue, 17 Oct 2023 09:23:57 +0000 (11:23 +0200)]
Enable shared dependencies by default (#1449)

* Set shared dependencies as the default

* user-changes.md: Explain shared builds

22 months agobugfix: the wrong folder was searched for nested crates (#1473)
Alejandro R Mosteo [Sat, 14 Oct 2023 20:02:31 +0000 (22:02 +0200)]
bugfix: the wrong folder was searched for nested crates (#1473)

We were attempting to enter a folder that not always will exist.

22 months agoBetter collision avoidance for tmp filenames (#1469)
Alejandro R Mosteo [Fri, 6 Oct 2023 16:00:56 +0000 (18:00 +0200)]
Better collision avoidance for tmp filenames (#1469)

22 months agoMerge remote-tracking branch 'alire/master' into release/2.0
Alejandro R. Mosteo [Wed, 4 Oct 2023 09:05:00 +0000 (11:05 +0200)]
Merge remote-tracking branch 'alire/master' into release/2.0

22 months agoAuto-update index periodically (#1447)
Alejandro R Mosteo [Wed, 4 Oct 2023 09:01:52 +0000 (11:01 +0200)]
Auto-update index periodically (#1447)

* Auto-refresh indexes after some time (default 24h)

* ask user on first autoupdate

* User changes

* Test behavior on network failure

22 months agoNew `alr printenv --last-build` (#1444)
Alejandro R Mosteo [Tue, 3 Oct 2023 16:30:58 +0000 (18:30 +0200)]
New `alr printenv --last-build` (#1444)

* New `alr printenv --last-build`

This may be useful when no direct editing of manifests is convenient, as
otherwise `printenv` will always use the manifest's configuration.

* make new behavior the default with fallback

* CI fixes

22 months agoMerge remote-tracking branch 'alire/master' into release/2.0
Alejandro R. Mosteo [Wed, 27 Sep 2023 14:47:53 +0000 (16:47 +0200)]
Merge remote-tracking branch 'alire/master' into release/2.0

22 months agoComprehensive shared builds tests and related tweaks (#1459)
Alejandro R Mosteo [Wed, 27 Sep 2023 14:46:09 +0000 (16:46 +0200)]
Comprehensive shared builds tests and related tweaks (#1459)

* Added `shared-build` driver

* Added `build_mode` key to the Python driver

* Fix config generation in `alr update` in shared mode

* Remove need for compiler in absence of dependencies

* Fixed monorepo tests and base dir

* Delay config generation in sandboxed mode too

* Include explicit switches in build hash inputs

This is necessary because for shared builds we're never regenerating the
configuration, so changes in switches went undetected

* Require complete config for sandboxed build

* Self-review

* Update new tests

22 months agoRemove ".git" after cloning, with option to disable (#1463)
Alejandro R Mosteo [Mon, 25 Sep 2023 18:40:57 +0000 (20:40 +0200)]
Remove ".git" after cloning, with option to disable (#1463)

* Remove ".git" after cloning, with option to disable

Also make clones shallow (they already were for pins)

* Fix test

22 months agoFix corner case related to git+file:// URLs (#1465)
Alejandro R Mosteo [Mon, 25 Sep 2023 17:16:51 +0000 (19:16 +0200)]
Fix corner case related to git+file:// URLs (#1465)

22 months agoOmit global switches in subcommand-specific help (#1462)
Alejandro R Mosteo [Mon, 25 Sep 2023 14:09:51 +0000 (16:09 +0200)]
Omit global switches in subcommand-specific help (#1462)

* Omit global switches in subcmd-specific help

* Update clic dependency

22 months agoRemove ".git" after cloning, with option to disable (#1463)
Alejandro R Mosteo [Mon, 25 Sep 2023 18:40:57 +0000 (20:40 +0200)]
Remove ".git" after cloning, with option to disable (#1463)

* Remove ".git" after cloning, with option to disable

Also make clones shallow (they already were for pins)

* Fix test

22 months agoFix corner case related to git+file:// URLs (#1465)
Alejandro R Mosteo [Mon, 25 Sep 2023 17:16:51 +0000 (19:16 +0200)]
Fix corner case related to git+file:// URLs (#1465)

22 months agoOmit global switches in subcommand-specific help (#1462)
Alejandro R Mosteo [Mon, 25 Sep 2023 14:09:51 +0000 (16:09 +0200)]
Omit global switches in subcommand-specific help (#1462)

* Omit global switches in subcmd-specific help

* Update clic dependency

22 months agoFix location of default install prefix (#1461)
Alejandro R Mosteo [Mon, 25 Sep 2023 10:46:17 +0000 (12:46 +0200)]
Fix location of default install prefix (#1461)

23 months agoFix location of default install prefix
Alejandro R. Mosteo [Thu, 21 Sep 2023 15:41:49 +0000 (17:41 +0200)]
Fix location of default install prefix

23 months agoSet shared dependencies as the default
Alejandro R. Mosteo [Sun, 10 Sep 2023 20:59:17 +0000 (22:59 +0200)]
Set shared dependencies as the default

user-changes.md: Explain shared builds

23 months agoComprehensive tests for shared builds
Alejandro R. Mosteo [Fri, 15 Sep 2023 11:27:48 +0000 (13:27 +0200)]
Comprehensive tests for shared builds

Added `shared-build` driver

Added `build_mode` key to the Python driver

Fix config generation in `alr update` in shared mode

Remove need for compiler in absence of dependencies

Fixed monorepo tests and base dir

Delay config generation in sandboxed mode too

Include explicit switches in build hash inputs

This is necessary because for shared builds we're never regenerating the
configuration, so changes in switches went undetected

Require complete config for sandboxed build

Self-review

23 months agoPrint UTF-8 strings using `GNAT.IO` in `Alr.Commands` subsystem (#1458)
Manuel [Tue, 19 Sep 2023 09:46:13 +0000 (11:46 +0200)]
Print UTF-8 strings using `GNAT.IO` in `Alr.Commands` subsystem (#1458)

Supersedes #1457

Fixes #1456

23 months agoRemove spurious -g (#1454)
Alejandro R Mosteo [Mon, 18 Sep 2023 08:22:01 +0000 (10:22 +0200)]
Remove spurious -g (#1454)

23 months agoFix bugs for corner cases with shared dependencies (#1453)
Alejandro R Mosteo [Fri, 15 Sep 2023 07:19:28 +0000 (09:19 +0200)]
Fix bugs for corner cases with shared dependencies (#1453)

* Fix a couple of bugs related to new build system

* Test for the fixed bug

* Self-review

23 months agoCleanup after shared releases impl (#1448)
Alejandro R Mosteo [Wed, 13 Sep 2023 15:29:02 +0000 (17:29 +0200)]
Cleanup after shared releases impl (#1448)

* Omit default mention in shared deps help

* Remove Export_Env arguments all-around

Now that we delay all actions to build time, we can set environment just at
that time and avoid complications.

* Debug workflow and dependency hashes

* Self-review

23 months agoCosmetic change to binary origin image when unavailable (#1446)
Alejandro R Mosteo [Wed, 13 Sep 2023 13:01:38 +0000 (15:01 +0200)]
Cosmetic change to binary origin image when unavailable (#1446)

23 months agoFix bug in dependency traversal order (#1445)
Alejandro R Mosteo [Wed, 13 Sep 2023 12:58:58 +0000 (14:58 +0200)]
Fix bug in dependency traversal order (#1445)

* Fix bug in solution traversal related to linked releases

* New test

* CI fixes

23 months agoRemove old release-sharing mechanism remnants (#1451)
Alejandro R Mosteo [Wed, 13 Sep 2023 09:59:22 +0000 (11:59 +0200)]
Remove old release-sharing mechanism remnants (#1451)

23 months agoUse the same Find function in "show" as in "show --jekyll" (#1452)
Manuel [Wed, 13 Sep 2023 07:58:59 +0000 (09:58 +0200)]
Use the same Find function in "show" as in "show --jekyll" (#1452)

This fixes #1402.

23 months agoNew `ALR_TRACEBACK_ENABLED` env. var. (#1450)
Alejandro R Mosteo [Tue, 12 Sep 2023 12:27:59 +0000 (14:27 +0200)]
New `ALR_TRACEBACK_ENABLED` env. var. (#1450)

* Add traceback enabling env var

* Test for new config var

23 months agoRun delayed post-fetch actions during build (#1441)
Alejandro R Mosteo [Mon, 4 Sep 2023 17:43:19 +0000 (19:43 +0200)]
Run delayed post-fetch actions during build (#1441)

* Refactored flags into new crate

* Delay post-fetch to first build (ensures complete env)

* Folderize flags

* Self-review

* Simpler flag use, better encapsulation

* Fix Windows-only test

23 months agoAdd some hardcoded externals to hash input (#1440)
Alejandro R Mosteo [Mon, 4 Sep 2023 16:53:53 +0000 (18:53 +0200)]
Add some hardcoded externals to hash input (#1440)

23 months agoInclude hash of dependencies in build hash (#1439)
Alejandro R Mosteo [Mon, 4 Sep 2023 16:26:15 +0000 (18:26 +0200)]
Include hash of dependencies in build hash (#1439)

Since a dependency may use different specs based on config values, environment
variables, GPR externals... we include the hash of dependencies in dependents'
hash inputs.

23 months agoReuse hashing mechanism to regen config in sandboxed mode (#1438)
Alejandro R Mosteo [Mon, 4 Sep 2023 15:49:53 +0000 (17:49 +0200)]
Reuse hashing mechanism to regen config in sandboxed mode (#1438)

* Regenerate configs on demand (sandboxed deps)

Leverage the new build hashing to make sure when a configuration needs
regenerating. This is pessimistic but safer than what we had, and more
future-proof.

* fix wrong switches generation

* test fixes

* New test, checking no unneeded rebuilds happen

* Fixes for CI-detected issues

23 months agoGenerate crate config on demand for shared dependencies (#1435)
Alejandro R Mosteo [Mon, 4 Sep 2023 12:14:12 +0000 (14:14 +0200)]
Generate crate config on demand for shared dependencies (#1435)

We needn't to generate it more than once, when the unique build folder is
created.

23 months agoAdd crate config variables to build hash (#1434)
Alejandro R Mosteo [Mon, 4 Sep 2023 11:33:01 +0000 (13:33 +0200)]
Add crate config variables to build hash (#1434)

* Add crate configuration values to build hash inputs

* Tests for configuration hashing

23 months agoDelay syncing shared build dir until the actual build (#1433)
Alejandro R Mosteo [Mon, 4 Sep 2023 10:57:28 +0000 (12:57 +0200)]
Delay syncing shared build dir until the actual build (#1433)

This is necessary because the build dir hash depends on the crate configuration
being complete, and this is only required at the time of building.

23 months agoAdd crate environment to build hash inputs (#1432)
Alejandro R Mosteo [Mon, 4 Sep 2023 10:02:37 +0000 (12:02 +0200)]
Add crate environment to build hash inputs (#1432)

* Add crate-modified env vars to hash input

* Test environment hashing

23 months agoRefactor config builtins (#1431)
Alejandro R Mosteo [Mon, 4 Sep 2023 09:29:07 +0000 (11:29 +0200)]
Refactor config builtins (#1431)

* Refactor configuration builtins

Gives them a tagged type that simplifies use and aglutinates default,
description, checks, which were previously not formally required or scattered.

* Colorize help output

23 months agoAdd compiler version to build hash (#1442)
Alejandro R Mosteo [Mon, 4 Sep 2023 08:56:25 +0000 (10:56 +0200)]
Add compiler version to build hash (#1442)

* Update pins and dependencies

* Include GPR externals in hash computation

* Avoid recursivity when loading environment

* Test of hashing externals

* Add compiler version to the build hash

* Tests for compiler in build hash input

* Improvements to test

23 months agoAdd GPR externals and env. vars. to build hash computation (#1428)
Alejandro R Mosteo [Mon, 4 Sep 2023 08:22:03 +0000 (10:22 +0200)]
Add GPR externals and env. vars. to build hash computation (#1428)

* Update pins and dependencies

* Include GPR externals in hash computation

* Avoid recursivity when loading environment

* Test of hashing externals

23 months agoFix use of canary file during `alr install` (#1429)
Alejandro R Mosteo [Thu, 24 Aug 2023 12:34:26 +0000 (14:34 +0200)]
Fix use of canary file during `alr install` (#1429)

23 months agoNew Force_Delete (#1426)
Alejandro R Mosteo [Thu, 24 Aug 2023 12:34:08 +0000 (14:34 +0200)]
New Force_Delete (#1426)

23 months agoReplace `rsync` with `GNATCOLL.VFS.Copy` (#1427)
Alejandro R Mosteo [Thu, 24 Aug 2023 12:33:30 +0000 (14:33 +0200)]
Replace `rsync` with `GNATCOLL.VFS.Copy` (#1427)

2 years agoMacOS; export PATH variables for includes and libraries. (#1420)
Simon Wright [Mon, 21 Aug 2023 15:14:46 +0000 (16:14 +0100)]
MacOS; export PATH variables for includes and libraries. (#1420)

* MacOS; export PATH variables for includes and libraries.

Homebrew and MacPorts install include files and libraries in places
where GCC won't look by default.

GCC will use these environment variables if set:

   C_INCLUDE_PATH     for C includes
   CPLUS_INCLUDE_PATH for C++ includes
   LIBRARY_PATH       for libraries

Both of the distribution managers place (symbolic links to) include
files in ${top_level}/include and libraries in ${top_level}/lib.

   For Homebrew on Intel silicon, top_level is normally /usr/local.
   For Homebrew on Apple silicon, top_level is normally /opt/homebrew.
   For MacPorts,                  top_level is normally /opt/local

  * src/alire/alire-platforms-current.ads (Load_Environment): add note
      on macOS use.
  * src/alire/os_macos/alire-platforms-current__macos.adb
    (context): added Alire.Environment (was limited), Ada.Directories.
    (Brew_Access): new.
    (Homebrew_Present): if Brew_Access is not null.
    (Detected_Distribution): made into an expression function.
    (Containing_Containing_Dir): new, used in Distribution_Root.
    (Distribution_Root): reworked.
    (Load_Environment): if either distribution is present, arrange to
      export the environment variables to suit.

* Update testsuite to match new macOS distribution detection.

  * testsuite/drivers/helpers.py (distribution): if on macOS, check whether
      the distribution management tool is on the PATH. We used to check for
      the environment variable HOMEBREW_PREFIX, but users don't have to
      arrange for this to be set in order to run Homebrew.

      First, if 'brew' is found, the distribution is Homebrew.
      If not and 'port' is found, the distribution is MacPorts.
      Otherwise, the distribution is unknown.

* In the macOS CI workflow, run the test script once only.

  * .github/workflows/ci-macos.yml (Run test script): remove the second
      call, which set up HOMEBREW_PREFIX (now no longer used by alr),
      and remove the note '(without Homebrew)' in the first.

2 years agoUse build profile in build hash (#1425)
Alejandro R Mosteo [Mon, 21 Aug 2023 14:12:45 +0000 (16:12 +0200)]
Use build profile in build hash (#1425)

* Compute hash using build profile

* Fix problem with multiple hashes in one run

Rooted in that default build profiles were used first and later the actual
profiles caused different folders to be used, in turn causing errors with the
conflicting CRATE_ALIRE_PREFIX variables.

* Write hash inputs to build dirs

* Testsuite additions and fixes

* Self-review

* Update pins and dependencies

2 years agoRefactor Alire.Shared into Alire.Toolchains (#1423)
Alejandro R Mosteo [Tue, 8 Aug 2023 09:29:43 +0000 (11:29 +0200)]
Refactor Alire.Shared into Alire.Toolchains (#1423)

2 years agoTrivial safeguard in `Force_Delete` (#1422)
Alejandro R Mosteo [Tue, 8 Aug 2023 09:29:12 +0000 (11:29 +0200)]
Trivial safeguard in `Force_Delete` (#1422)

2 years agoNew shared builds mechanism (mockup) (#1419)
Alejandro R Mosteo [Sat, 5 Aug 2023 19:10:44 +0000 (21:10 +0200)]
New shared builds mechanism (mockup) (#1419)

* New shared builds mechanism (mockup)

* Self-review

* Fixes for Windows

2 years agoDon't treat warnings as erros when no style checks (#1412)
Alejandro R Mosteo [Tue, 1 Aug 2023 10:24:36 +0000 (12:24 +0200)]
Don't treat warnings as erros when no style checks (#1412)

2 years agoBetter random generation of temp file names (#1414)
Alejandro R Mosteo [Tue, 1 Aug 2023 10:24:10 +0000 (12:24 +0200)]
Better random generation of temp file names (#1414)

The issue was with the default random seed being the same during a whole
second, so batch runs in the testsuite did clash from time to time.

2 years agoFix nightly build (#1413)
Alejandro R Mosteo [Thu, 27 Jul 2023 13:57:58 +0000 (15:57 +0200)]
Fix nightly build (#1413)

2 years agoNew `alr publish --request-review` (#1409)
Alejandro R Mosteo [Thu, 27 Jul 2023 10:59:53 +0000 (12:59 +0200)]
New `alr publish --request-review` (#1409)

* Descriminate more PR states

Only missing is when there are changes requested

* Colored states

* Fixed review evaluation

* New `alr publish --request-review`

* Document new feature in user visible changes

* Self-review

2 years agoNew `alr publish --cancel` (#1406)
Alejandro R Mosteo [Tue, 25 Jul 2023 10:21:13 +0000 (12:21 +0200)]
New `alr publish --cancel` (#1406)

* New `alr publish --cancel <num> --reason <text>`

* Added JSON escaping

* Update alire.toml pins

* user-changes.md: new `--status`, `--cancel` switches

2 years agodev: use env for executable shebangs (#1408)
tali auster [Mon, 24 Jul 2023 09:38:41 +0000 (03:38 -0600)]
dev: use env for executable shebangs (#1408)

This is just a minor fix to let the scripts run in more exotic
environments, i.e., NixOS.

2 years ago`alr publish --status` (#1400)
Alejandro R Mosteo [Tue, 18 Jul 2023 15:01:25 +0000 (17:01 +0200)]
`alr publish --status` (#1400)

* Update doc on publishing to match new behavior

* Retrieve status of opened PRs by the user

Make it so the maximum number of results is returned by github

* Self-review

2 years agoChange all mentions of 'catalog' to 'index' (#1405)
Alejandro R Mosteo [Tue, 18 Jul 2023 14:58:08 +0000 (16:58 +0200)]
Change all mentions of 'catalog' to 'index' (#1405)

2 years agoSupport MacPorts as external provider. (#1404)
Simon Wright [Tue, 18 Jul 2023 11:37:59 +0000 (12:37 +0100)]
Support MacPorts as external provider. (#1404)

* src/alire/alire-origins-deployers-system-macports.adb: new.
  * src/alire/alire-origins-deployers-system-macports.ads: new.
  * src/alire/alire-origins-deployers-system.adb
    (context): add Alire.Origins.Deployers.System.Macports.
    (Platform_Deployer): Platforms.Macports => System.Macports.Deployer.
  * src/alire/alire-platforms.ads
    (Distributions): add Macports.
    (Package_Managers): likewise.
    (Distro_Manager): Macports => Macports.
  * src/alire/alire-utils-tools.adb (System_Package_For_Tool): add Macports,
      same as the other distributions.
  * src/alire/os_macos/alire-platforms-current__macos.adb:
    (context): add GNAT.OS_Lib.
    (Port_Access): new, access to Macports' 'port' executable.
    (Macports_Present): new, true if 'port' was found.
    (Detected_Distribution): first, check for Homebrew_Present, then, for
      Macports_Present. Return the corresponding Distribution if found.

2 years agoBits from the `alr share` feat to be kept (#1399)
Alejandro R Mosteo [Tue, 18 Jul 2023 11:16:57 +0000 (13:16 +0200)]
Bits from the `alr share` feat to be kept (#1399)

* Bits from the `alr share` feat to be kept

* Code review changes

* Update CLIC pin

* Use upstream CLIC repository

2 years agoImprovements to publishing with automatic PR creation (#1398)
Alejandro R Mosteo [Mon, 3 Jul 2023 18:39:13 +0000 (20:39 +0200)]
Improvements to publishing with automatic PR creation (#1398)

* Added --submit switch to `alr publish`

* Forking of community index

* Changes up to pushing the manifest

* PR creation

* Reshaped as steps of the assistant

* Use release-specific branch

* Report PR webpage after creation

* Detect existing conflicting PR

* Minor tweaks (draft mode, texts, busy spinners)

* Documentation

* Allow overriding of community index info

This will allow our testing and help maintainers of other indexes

* Fix temp dir being not absolute

* Fixes for self-build with `alr build`

* Fixes for Windows temp file specifics

* Document all steps more thoroughly

Also use a better name for the new child package.

* Make submission the default after user confirmation

Document this change in behavior and the new `--skip-submit` switch that
restores the former behavior.

* Default to submit, and add switch not to submit

2 years agoIndicators in solution diff about non-source dependencies (#1395)
Alejandro R Mosteo [Thu, 22 Jun 2023 12:41:33 +0000 (14:41 +0200)]
Indicators in solution diff about non-source dependencies (#1395)

* Warn about non-source dependencies

* Disable fail-fast in workflow

* Create virtual environment

2 years agoUse a python3 venv on Linux distros (#1396)
Alejandro R Mosteo [Thu, 22 Jun 2023 08:31:55 +0000 (10:31 +0200)]
Use a python3 venv on Linux distros (#1396)

2 years agoFix Windows testsuite for self-built alr (#1387)
Alejandro R Mosteo [Fri, 2 Jun 2023 11:14:42 +0000 (13:14 +0200)]
Fix Windows testsuite for self-built alr (#1387)

2 years agoUnify naming of session/working folder as workspace (#1390)
Alejandro R Mosteo [Fri, 2 Jun 2023 11:03:13 +0000 (13:03 +0200)]
Unify naming of session/working folder as workspace (#1390)

2 years agoSelect default toolchain automatically instead of showing assistant on 1st run (...
Alejandro R Mosteo [Fri, 2 Jun 2023 11:01:17 +0000 (13:01 +0200)]
Select default toolchain automatically instead of showing assistant on 1st run (#1391)

* Use defaults for toolchain instead of assistant on 1st run

* Test automatic toolchain selection

* Self-review

* Extra check in test

2 years agoFix unpacking of tarfiles with softlinks to subdirectories (#1382)
Alejandro R Mosteo [Wed, 31 May 2023 15:52:44 +0000 (17:52 +0200)]
Fix unpacking of tarfiles with softlinks to subdirectories (#1382)

* Fix Traverse_Tree for softlinked dirs

Remains: GC.VFS.Remove_Dir fails because of the same reason, probably.

* Manually delete softlinks prior to deleting a dir

Otherwise, depending on the links' targets, both Ada.Directories and
GNATCOLL.VFS had trouble with fully deleting a tree containing such links.

* Test for tarballs containing softlinks

* Self-review

* Skip new test on Windows

2 years agoDon't raise on bad external detection from output (#1389)
Alejandro R Mosteo [Wed, 31 May 2023 15:51:54 +0000 (17:51 +0200)]
Don't raise on bad external detection from output (#1389)

* New test case for detection from output

* Add exception catch-all and report in debug output

2 years ago"Compiler version" --> "Compiled with version" (#1388)
Alejandro R Mosteo [Wed, 31 May 2023 11:48:51 +0000 (13:48 +0200)]
"Compiler version" --> "Compiled with version" (#1388)

2 years agoFixes for compilation with gcc 13.1 (#1381)
Alejandro R Mosteo [Wed, 31 May 2023 10:01:44 +0000 (12:01 +0200)]
Fixes for compilation with gcc 13.1 (#1381)

2 years agoalire-platforms-current__windows.adb: add C++ include path for msys2 (#1375)
Fabien Chouteau [Tue, 2 May 2023 12:51:02 +0000 (14:51 +0200)]
alire-platforms-current__windows.adb: add C++ include path for msys2 (#1375)

2 years agoAlr init fixes (#1372)
Fabien Chouteau [Tue, 25 Apr 2023 11:19:02 +0000 (13:19 +0200)]
Alr init fixes (#1372)

* Alr.Commands.Init: improve error message on tag input validation

* Alr.Commands.Init: fix string escape for generated manifest

* Alr.Commands.Init: add LLVM-exception options and change default

2 years agoFix Wide_Wide_String interpreted as String (#1370)
Alejandro R Mosteo [Fri, 21 Apr 2023 10:34:14 +0000 (12:34 +0200)]
Fix Wide_Wide_String interpreted as String (#1370)

2 years agoRemove `alr test --docker` (#1366)
Alejandro R Mosteo [Wed, 5 Apr 2023 15:21:54 +0000 (17:21 +0200)]
Remove `alr test --docker` (#1366)

* Local testing of crates with docker images

WIP: write tests for local+docker default+custom tests

This opens the doors to batch testing on many distros locally

* Test for the use of docker with local `alr test`

* Self-review

* WIP: something funny with the testsuite output

* Remove `alr test --docker`

* Add user changes

* Revert .vscode changes to unclutter PR

* Fix PR number in user changes

2 years agoConfig option to globally share dependencies (#1367)
Alejandro R Mosteo [Wed, 5 Apr 2023 15:21:18 +0000 (17:21 +0200)]
Config option to globally share dependencies (#1367)

* Add config option to override dependencies location

Note that pins are not affected, as those are likely to be conflicting across
projects.

* Ensure shared deps have a manifest, show in `alr version`

* Test for new shared dependencies

* Force regeneration of config when global dep sharing

* Check that configs are regenerated every time

2 years agoTweaks to VSCode support configuration
Alejandro R. Mosteo [Tue, 4 Apr 2023 16:24:11 +0000 (18:24 +0200)]
Tweaks to VSCode support configuration

2 years agoBump clic dependency (#1363)
Alejandro R Mosteo [Mon, 3 Apr 2023 11:50:54 +0000 (13:50 +0200)]
Bump clic dependency (#1363)

* Bump clic dependency to include clic#27

* Add test to double-check proper UTF-8 output

* Make test not dependent on tty detection

2 years agoFix nightly build (#1365)
Alejandro R Mosteo [Sun, 2 Apr 2023 11:01:57 +0000 (13:01 +0200)]
Fix nightly build (#1365)

* Add branch to test config

* Try to pinpoint offending 'uses'

2 years agoSwitch to ghcr.io from dockerhub (#1360)
Alejandro R Mosteo [Fri, 31 Mar 2023 09:07:14 +0000 (11:07 +0200)]
Switch to ghcr.io from dockerhub (#1360)

* Switch to ghcr.io from dockerhub

* Use action instead of manually invoking Docker

2 years agoTyped variants of Alire.Config.Edit.Set (#1353)
Alejandro R Mosteo [Thu, 30 Mar 2023 11:19:42 +0000 (13:19 +0200)]
Typed variants of Alire.Config.Edit.Set (#1353)

* Typed variants of Alire.Config.Edit.Set

Mostly because it's too easy to mix Boolean with String

* Migrate raw uses to typed uses

* Leave only needed instances

* Update clic dependency

2 years agoDocker driver for tests in default configuration (#1358)
Alejandro R Mosteo [Mon, 27 Mar 2023 20:21:59 +0000 (22:21 +0200)]
Docker driver for tests in default configuration (#1358)

2 years agoTest the local release with `alr test` (#1356)
Alejandro R Mosteo [Mon, 27 Mar 2023 20:21:15 +0000 (22:21 +0200)]
Test the local release with `alr test` (#1356)

* Ability to test local crate

* Test for local crate testing

* self-review

* Add user changes entry

* Add check of release profile to tests

2 years agoUnicode documentation (#1332)
Alejandro R Mosteo [Fri, 24 Mar 2023 11:51:08 +0000 (12:51 +0100)]
Unicode documentation (#1332)

* Document Alire policy on Unicode

* Add control over -gnatW8 switch

* Tweak documentation and tests

* Document in AEP the -gnatW8 effects

* Reformat long lines

* Add comp.lang.ada references

* Renamed source encoding switches

* Use Compiler_Default for no switches

* Update catalog doc to match new source encoding types

* Fix wrong mix of Wide_String with UTF-16

* Bump dependencies

2 years agoActually use the cache location for shared releases (#1349)
Alejandro R Mosteo [Tue, 21 Mar 2023 11:26:03 +0000 (12:26 +0100)]
Actually use the cache location for shared releases (#1349)

* Use the cache location for shared releases

* Self-review

* User changes summary

* Cache migration to avoid redownloads

* Removed cache migration

2 years agoAvoid a crash when system pkg is detected twice (#1350)
Alejandro R Mosteo [Thu, 16 Mar 2023 08:45:02 +0000 (09:45 +0100)]
Avoid a crash when system pkg is detected twice (#1350)

Different system package names may resolve to the same version, e.g. when using
transitional names. Although the external definition is probably wrong and
could be fixed, better not to crash as this is a non-issue for us.

2 years agoUpdate getting-started.md (#1343)
corinthian13 [Tue, 14 Mar 2023 10:36:59 +0000 (10:36 +0000)]
Update getting-started.md (#1343)

* Update getting-started.md

Lines 12 - 15.

More clarity on how to add PATH entry for Alire ecosystem client installed on a user's local Linux machine.
PATH value was missing the required double quotes.

* Update getting-started.md

To offer users a choice of adding the Alire client environment to their PATH environment either just for their current terminal session or for future sessions also.

* Update getting-started.md

Put PATH entries into .profile rather than .bashrc since some users may not be using the bash shell, i.e. may be using csh, zsh, fsh, etc.

2 years agoUpdate: "This file is generated" (#1338)
Jesper Quorning [Tue, 7 Mar 2023 10:15:15 +0000 (11:15 +0100)]
Update: "This file is generated" (#1338)

* Update: "This file is generated"

* Update alire-lockfiles.adb

2 years agoDon't enable color if TERM=dumb (#1342)
Alejandro R Mosteo [Thu, 2 Mar 2023 11:32:21 +0000 (12:32 +0100)]
Don't enable color if TERM=dumb (#1342)