]>
_ Git - alire.git/log
Alejandro R Mosteo [Tue, 5 Apr 2022 13:44:12 +0000 (15:44 +0200)]
Remapping of ARM64 to AARCH64 (#968)
* Remapping of ARM64 to AARCH64
* Code review fix
Co-authored-by: GHA <actions@github.com>
Fabien Chouteau [Mon, 4 Apr 2022 17:15:53 +0000 (19:15 +0200)]
Alire.Crate_Configuration: add built-in values for host OS, Arch and Distro (#961)
* Alire.Crate_Configuration: add built-in values for host OS, Arch and Distro
This will be very useful for platform specific code.
* Alire.Crate_Configuration: Tweak generated code
The Ada/GPR constant names, package names, and enum values are forced to mixed case.
The C constant names are forced to upper case.
* Alire.Platforms: Refactoring to fix elaboration
Msys2 install in Alire.Platforms.Init added elaboration issue for code using (e.g.) Current.Operating_System in elaboration.
Jeremy Grosser [Mon, 4 Apr 2022 17:05:29 +0000 (10:05 -0700)]
Remove git --progress flag (fixes #966) (#967)
Alejandro R Mosteo [Fri, 1 Apr 2022 17:18:14 +0000 (19:18 +0200)]
Silence git when not running in a tty (#963)
Fabien Chouteau [Wed, 30 Mar 2022 08:58:25 +0000 (10:58 +0200)]
Alire.Crate_Configuration: Add a Crate_Name constant for all configs (#957)
* alire.toml: bump gnatcoll-slim commit to match git submodule
* Alire.Crate_Configuration: Add a Crate_Name constant for all configs
Just a convenient thing to have, for instance with the upcoming
Resources crate.
Fabien Chouteau [Wed, 30 Mar 2022 08:56:01 +0000 (10:56 +0200)]
Alire.Environment: change _PREFIX to _ALIRE_PREFIX (#958)
* alire.toml: bump gnatcoll-slim commit to match git submodule
* Alire.Environment: change _PREFIX to _ALIRE_PREFIX
With just _PREFIX there is a high risk of conflicts with legitimate use
of environment variables.
Fabien Chouteau [Wed, 30 Mar 2022 08:54:11 +0000 (10:54 +0200)]
alire.toml: bump gnatcoll-slim commit to match git submodule (#959)
Fabien Chouteau [Tue, 29 Mar 2022 09:58:19 +0000 (11:58 +0200)]
Alr.Commands.Exec: -P switch to add project file on the command line (#956)
* Alr.Commands.Exec: -P switch to add project file on the command line
* Alr.Commands: Add built-in aliases for gnatcov and gnatprove
Fabien Chouteau [Mon, 28 Mar 2022 16:36:45 +0000 (18:36 +0200)]
Change default GPRbuild switches (#955)
- Remove `-gnatwU` (Recompile if compiler switches have changed):
It is a legacy from the time when the index was in Ada. Removal may
trigger some issue on crates with warnings-as-error. But the longer
we wait the bigger of a problem it will be.
- Add `-s` (Recompile if compiler switches have changed):
As discussed in #952, it makes sense to have this default for all
builds.
Fabien Chouteau [Mon, 28 Mar 2022 10:17:08 +0000 (12:17 +0200)]
Alire.Environment: export <CRATE_NAME>_PREFIX for all crates of solution (#954)
This is to be used for retrieval of crate resources, see #948.
Fabien Chouteau [Mon, 28 Mar 2022 09:02:23 +0000 (11:02 +0200)]
Alire.Properties.Build_Switches: Add support for Ada version switches (#953)
Alejandro R Mosteo [Mon, 14 Mar 2022 11:48:42 +0000 (12:48 +0100)]
New property for detected host architecture (#932)
* New property for detected host architecture
This will allow indexing the proper binaries for different host architectures.
* Don't use uname on Windows
Alejandro R Mosteo [Wed, 9 Mar 2022 15:04:03 +0000 (16:04 +0100)]
Leftover comments from platform refactor (#950)
Alejandro R Mosteo [Mon, 7 Mar 2022 11:00:49 +0000 (12:00 +0100)]
Remove pins from manifest during `alr publish` (#947)
* Remove pins from deployed sources and final manifest
* Bump toml_slicer pin in manifest
* Test for pin removal during `alr publish`
Jesper Quorning [Mon, 7 Mar 2022 11:00:01 +0000 (12:00 +0100)]
bugfix: emit all found executables (#946)
Alejandro R Mosteo [Fri, 4 Mar 2022 12:01:12 +0000 (13:01 +0100)]
Support for publishing of crates in subdirectories of repositories (#939)
* Added require information to Origins
* Unique folder name for monorepos
* Use subdir all around, but for publishing
* Alire.Publish: detect and publish nested crates
* Alire.Roots: Properly deploy/use nested crates
* Test for basic publishing and using of monorepo
* Test for nesting beyond the top level
* Test no subdir accepted for non-repo origins
* user-changes.md: new monorepo feature
* Updates to various documentations
* Create info file for monorepo releases
This is an empty file in the dependencies folder that helps curious users to
understand where a particular release is coming from. For example:
dependencies
+-- monorepo_adef1234
+-- mycrate
+-- mycrate_1.0.0_in_monorepo_adef1234
* Self-review fixes
* Fixes for Windows
Windows may return paths with either long or short names which complicate a bit
comparing two directories as we do to detect nested crates. To us, the problem
esteems from git returning different names than the Ada std lib.
* Alire.Releases: fix obsolete header box
Co-authored-by: Jesper Quorning <jesper.quorning@gmail.com>
* Test using crates from different monorepo commits
Co-authored-by: Jesper Quorning <jesper.quorning@gmail.com>
Fabien Chouteau [Tue, 15 Feb 2022 12:12:09 +0000 (13:12 +0100)]
doc: Add an introduction and update getting-started.md (#899)
* doc: Add an introduction and update getting-started.md
* Review typo fixes
Co-authored-by: Alejandro R. Mosteo <amosteo@unizar.es>
Alejandro R Mosteo [Tue, 15 Feb 2022 10:10:03 +0000 (11:10 +0100)]
Display pins in show/with commands (#940)
* Display pins in show/with commands
* Tweaks to testsuite for new output
Alejandro R Mosteo [Mon, 14 Feb 2022 11:32:00 +0000 (12:32 +0100)]
alr.py: ensure baseline git configuration in tests (#936)
Alejandro R Mosteo [Mon, 14 Feb 2022 11:27:57 +0000 (12:27 +0100)]
Log command line before parsing & execution (#938)
Alejandro R Mosteo [Mon, 7 Feb 2022 12:29:18 +0000 (13:29 +0100)]
New config option to disable community index (#933)
* New config option to disable community index
This way we can ensure that no test in our testsuite is inadvertently using the
community index, as indeed it was happening.
* Code review
Alejandro R Mosteo [Fri, 4 Feb 2022 10:14:58 +0000 (11:14 +0100)]
Refactor scattered platform code into Alire.Platforms.Current (#931)
* Refactor Alire.Platform into Alire.Platforms.Current [linux]
* Refactor Alire.Platform as Alire.Platforms.Current [macOS]
* Refactor Alire.Platform as Alire.Platforms.Current [Windows]
* Refactor Alr.Platform as Alire.Platforms.Current [Linux]
* Refactor Alr.Platform into Alire.Platforms.Current [macOS]
* Refactor Alr.Platform into Alire.Platforms.Current [Windows]
* Dummy files to keep some empty dirs for the future
* Ensure OS-specific init is performed at startup
* Alire.Root: remove no longer needed Env copy
Chris660 [Mon, 31 Jan 2022 10:30:25 +0000 (10:30 +0000)]
alr toolchain: fix gprbuild typo in help (#929)
Co-authored-by: Chris Sykes <chris@amtiskaw.net>
Alejandro R Mosteo [Mon, 31 Jan 2022 10:28:48 +0000 (11:28 +0100)]
Don't attempt to build a binary release (#928)
Fixes #820
Alejandro R Mosteo [Fri, 28 Jan 2022 09:21:49 +0000 (10:21 +0100)]
Bump clic to fix infinite loop on multichoice on macOS (#927)
Alejandro R. Mosteo [Thu, 27 Jan 2022 18:59:29 +0000 (19:59 +0100)]
Fix defects from last merge on Windows
Alejandro R. Mosteo [Thu, 27 Jan 2022 17:08:03 +0000 (18:08 +0100)]
Forward-port 1.1.2 into master
Alejandro R Mosteo [Thu, 27 Jan 2022 13:35:42 +0000 (14:35 +0100)]
Bump version for 1.1.2 maintenance release (#924)
Also update alire.toml to allow a successful self-build
Alejandro R Mosteo [Wed, 26 Jan 2022 17:59:38 +0000 (18:59 +0100)]
Full update of msys2 after first install (#923)
* Full update of msys2 after first install
* Update msys installer to the latest stable release
Jesper Quorning [Mon, 17 Jan 2022 08:18:16 +0000 (09:18 +0100)]
Fix several typos in trace and output (#912)
* Fix space typo in trace for unknown distribution
* Typo: configuration
* Typo: suppress
* Typo: unknown
* Typo: non-standard
* Typo: mixed-precedence
* Typo: overriding
* Typo: integer
* Typo: collaterally
* Typo: category
* Typo: already
* Fix spelling of configuration in test
* Typo: assignments
* Wording: mixed-origin
Jesper Quorning [Sun, 16 Jan 2022 18:57:04 +0000 (19:57 +0100)]
Fix several typos in comments (#915)
* Fix space typo in trace for unknown distribution
* Typo: will
* Typo: unknown
* Typo: uncommitted
* Typo: running
* Typo: addition
* Typo: occurrence
* Typo: nonstandard
* Typo: preferring
* Typo: overridden
* Typo: independent
* Typo: identify
* Typo: identification
* Typo: impossibilities
* Typo: happen
* Typo: function
* Typo: formatting
* Typo: environment
* Typo: enterprise
* Typo: dispatches
* Typo: deprecated
* Typo: dependencies
* Typo: current
* Typo: corresponding
* Typo: columns
* Typo: authoritative
* Typo: attempts
* Typo: anywhere
* Typo: the aggregated
* Typo: if
* Typo: recompilation
* Wording: collection
Jesper Quorning [Sun, 16 Jan 2022 17:53:00 +0000 (18:53 +0100)]
Rename Classifiable interface (#916)
* Fix space typo in trace for unknown distribution
* Rename Classifiable interface
Jesper Quorning [Sun, 16 Jan 2022 17:46:11 +0000 (18:46 +0100)]
Rename to Make_Switches_Map (#914)
* Fix space typo in trace for unknown distribution
* Typo: Make_Switches_Map
Jesper Quorning [Sun, 16 Jan 2022 17:45:24 +0000 (18:45 +0100)]
Rename to GNAT_Suppress_Runtime_Check (#913)
* Fix space typo in trace for unknown distribution
* Typo: GNAT_Suppress_Runtime_Check
Bent Bracke [Sat, 8 Jan 2022 17:15:33 +0000 (18:15 +0100)]
Fix spelling of alr (#909)
Paul Jarrett [Sat, 8 Jan 2022 17:06:06 +0000 (12:06 -0500)]
Fix identifier typo. (#908)
Alejandro R Mosteo [Tue, 4 Jan 2022 11:45:57 +0000 (12:45 +0100)]
Bugfix for nested empty tables in manifest (#906)
* Test for bug
* Fix bug in which a flattened tree may be empty
* Update test with bugfix URL
onox [Mon, 3 Jan 2022 12:22:32 +0000 (13:22 +0100)]
Replace invalid option --skip-compile with --skip-build in alr clean (#903)
Jesper Quorning [Fri, 31 Dec 2021 11:27:42 +0000 (12:27 +0100)]
Fix space typo in trace for unknown distribution (#901)
Fabien Chouteau [Tue, 21 Dec 2021 12:36:07 +0000 (13:36 +0100)]
Build profiles and swtiches continued (#896)
* Alire.Properties.Build_Profiles: renames build-profile to build-profiles
* Alr.Commands.Build: add build profile switches
* Alire.Utils.Switches: add ffunction-sections and fdata-sections to all optim
* Document build profiles and switches
* Typo
* Typo
Fabien Chouteau [Mon, 13 Dec 2021 17:31:15 +0000 (18:31 +0100)]
Build profiles and switches system (#895)
* Build profiles prototype
* Build_profile in manifest
* First version of build_switches support
* Alire.Properties.Build_Switches: migrate code from Alire.Utils
* Alr.Commands.Init: don't generate lockfile and config files
These files are difficult to write "by hand" as the features evolve.
They will be generated as soon as the users builds/update/with the crate.
* testsuite: add tests for the build profile system
* Alr.Commands.Init: change object dir based on build profile
* Rename build profile TOML keys
* Alire.Utils.Switches: remove style switch not available in GNAT 9
Fabien Chouteau [Fri, 10 Dec 2021 13:16:13 +0000 (14:16 +0100)]
Alire.Crate_Configuration: Generate Pure and Preelaborate Ada package (#894)
* Alire.Crate_Configuration: Genrate Pure and Preelaborate Ada package
So the config package can be withed by any other package.
* Update alire-crate_configuration.adb
Alejandro R Mosteo [Tue, 26 Oct 2021 09:00:42 +0000 (11:00 +0200)]
Bump version for 1.1.1 bugfix release (#883)
Alejandro R Mosteo [Tue, 26 Oct 2021 08:59:53 +0000 (10:59 +0200)]
Don't err when unsetting a non-existing config key (#884)
Alejandro R. Mosteo [Fri, 15 Oct 2021 10:53:53 +0000 (12:53 +0200)]
Fix unintended side-effect of latest merge
Alejandro R. Mosteo [Wed, 13 Oct 2021 13:40:24 +0000 (15:40 +0200)]
Merge branch 'alire/release/1.1' into master
Alejandro R Mosteo [Tue, 12 Oct 2021 09:13:34 +0000 (11:13 +0200)]
Test case for bug #875 (virtual crate environment) (#878)
* Test case for bug #875 (virtual crate environment)
* Fix for test on Windows
Fabien Chouteau [Wed, 6 Oct 2021 17:45:19 +0000 (19:45 +0200)]
Alr.Commands.Init: fix .gitignore for bin crates (#877)
* Alr.Commands.Init: fix .gitignore for bin crates
* Alr.Commands.Init: fix .gitignore directory patterns
We only want to mach directories at the same level as .gitignore.
Alejandro R Mosteo [Tue, 5 Oct 2021 10:10:06 +0000 (12:10 +0200)]
Do not exit with error on external failed detection (#876)
Alejandro R. Mosteo [Mon, 4 Oct 2021 12:23:13 +0000 (14:23 +0200)]
Merge 'alire/release/1.1' into 'master'
Alejandro R Mosteo [Mon, 4 Oct 2021 12:15:35 +0000 (14:15 +0200)]
Bugfix for improper check related to virtual crates (#875)
Fabien Chouteau [Thu, 30 Sep 2021 15:14:24 +0000 (17:14 +0200)]
Alire.Releases: fix dependencies in YAML output (#867)
Fabien Chouteau [Thu, 30 Sep 2021 15:13:16 +0000 (17:13 +0200)]
New command exec and support of aliases (#853)
* Alr.Commands.Exec: new command to run executables/scripts in the Alire context
* Alr.Commands: add support for aliases
* Alr.Commands: Use CLIC parse before -- option
Jesper Quorning [Wed, 29 Sep 2021 11:56:24 +0000 (13:56 +0200)]
Reorder global switches in Default_Test (#871)
Global switches must come before command. (#850) (
369c7ec ).
Jesper Quorning [Wed, 29 Sep 2021 11:27:07 +0000 (13:27 +0200)]
Use Stopwatch for elapsed time image (#870)
Alejandro R Mosteo [Tue, 28 Sep 2021 16:24:14 +0000 (18:24 +0200)]
Enable and update self-build (#798)
* CI workflow using Alire toolchain and `alr build`
* Sync pins of aaa, clic to match submodules
Fabien Chouteau [Tue, 28 Sep 2021 14:49:40 +0000 (16:49 +0200)]
Update CLIC dependency to avoid build failure on older GNAT versions (#872)
* Update CLIC dependency to avoid build failure on older GNAT versions
* Alr.Commands.Run: remove useless "use all type"
Alejandro R Mosteo [Wed, 22 Sep 2021 16:05:07 +0000 (18:05 +0200)]
Bugfix when there is external gnat but not gprbuild (#866)
Alejandro R Mosteo [Wed, 22 Sep 2021 16:05:07 +0000 (18:05 +0200)]
Bugfix when there is external gnat but not gprbuild (#866)
Alejandro R Mosteo [Tue, 21 Sep 2021 09:17:15 +0000 (11:17 +0200)]
Disable assistant on --select <release> (#862)
Alejandro R Mosteo [Tue, 21 Sep 2021 09:17:15 +0000 (11:17 +0200)]
Disable assistant on --select <release> (#862)
Alejandro R. Mosteo [Thu, 16 Sep 2021 15:56:31 +0000 (17:56 +0200)]
Bump version to the next devel version
Alejandro R. Mosteo [Thu, 16 Sep 2021 15:48:34 +0000 (17:48 +0200)]
Merge remote-tracking branch 'alire/next'
Alejandro R. Mosteo [Thu, 16 Sep 2021 15:44:53 +0000 (17:44 +0200)]
Merge branch 'release/1.1'
Alejandro R. Mosteo [Thu, 16 Sep 2021 15:02:37 +0000 (17:02 +0200)]
Move the 1.1 marker up to the top of changes
Alejandro R Mosteo [Thu, 16 Sep 2021 15:00:14 +0000 (17:00 +0200)]
Bump version for 1.1 release (#856)
* Bump version for 1.1 release
* Switch index branch to stable-1.1
Alejandro R. Mosteo [Thu, 16 Sep 2021 14:05:13 +0000 (16:05 +0200)]
Merge up to On_Demand action into release/1.1
Fabien Chouteau [Thu, 16 Sep 2021 13:58:45 +0000 (15:58 +0200)]
Fix 1.1 Is_TTY (#855)
* Update CLIC to v0.1.1
* Alr.Commands: use CLIC.TTY selection/detection of Is_TTY for the Trace package
Alejandro R Mosteo [Thu, 16 Sep 2021 13:41:10 +0000 (15:41 +0200)]
Revamped `alr version` output (#852)
* Revamped `alr version` output
* New test to verify basic `alr version` operation
* Cosmetic tweaks
* Tweaks for old tests
Alejandro R. Mosteo [Thu, 16 Sep 2021 11:31:55 +0000 (13:31 +0200)]
Merge remote-tracking branch 'alire/master' into next
Alejandro R. Mosteo [Thu, 16 Sep 2021 11:26:09 +0000 (13:26 +0200)]
Merge changes from master since last sync
commit
81d28cdbb9ea9f128658754a7ca008f3949ea070
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date: Wed Sep 15 17:50:45 2021 +0200
Fix regression in migration to CLIC.Config
commit
ede072fcfe0a44e2f09e5ecc5272c29cb7120ad5
Merge:
7e01a362 ff02df63
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date: Wed Sep 15 17:22:44 2021 +0200
Merge #847
commit
7e01a3627f52820251249161bc2af86f904bd393
Merge:
d9b14be6 b9239853
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date: Wed Sep 15 17:19:42 2021 +0200
Merge #848
commit
d9b14be69af23313974051bc9a7bbf5fbd29ac80
Merge:
74a40736 954135ad
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date: Wed Sep 15 17:18:31 2021 +0200
Merge #846
commit
74a4073606843f18798503444f5f0a058e347e36
Merge:
cb50222d b86d79dc
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date: Wed Sep 15 17:09:24 2021 +0200
Merge #844
commit
cb50222dfa01774a256dc91d6256dc92fb595e88
Merge:
4c86b8d8 e921ea3b
Author: Alejandro R. Mosteo <amosteo@unizar.es>
Date: Wed Sep 15 17:08:53 2021 +0200
Merge #845
commit
ff02df63dc7878edce1ed2bdddd8137be88eb707
Author: Alejandro R Mosteo <alejandro@mosteo.com>
Date: Wed Sep 15 13:44:03 2021 +0200
New On_Demand action type (#847)
* New On_Demand action for future-proofing
* Test for on-demand actions
commit
b923985324431f867ae576e9dd3676fa743fac2f
Author: Fabien Chouteau <Fabien-Chouteau@users.noreply.github.com>
Date: Tue Sep 14 15:58:16 2021 +0200
Alire.Config.Edit: fix for --config with relative path (#848)
commit
954135ad24577d3afcb2a92d671a9b53b61c9277
Author: Alejandro R Mosteo <alejandro@mosteo.com>
Date: Tue Sep 14 10:04:43 2021 +0200
Checks on compatibility of tools given via `--select <release>` (#846)
* Don't present incompatible tools in the assistant
* Sort gnats by version in the assistant
Rather than by name
* Detect origin conflicts in `alr toolchain --select <>`
* Use already configured tool origin as filter
* New test for checks on --select <releases>
* Self-review tweaks
commit
b86d79dcaabf3081a7c1548b8792fe33aa54e024
Author: Alejandro R Mosteo <alejandro@mosteo.com>
Date: Tue Sep 14 10:03:54 2021 +0200
Don't present incompatible tools in the assistant (#844)
commit
e921ea3bcacef728f849ac7e33881ada19031c17
Author: Alejandro R Mosteo <alejandro@mosteo.com>
Date: Tue Sep 14 10:00:38 2021 +0200
Sort GNATs by version in the assistant (#845)
Rather than by name
Fabien Chouteau [Thu, 16 Sep 2021 11:23:25 +0000 (13:23 +0200)]
Alr.Commands.Build: forward subcommand args to gprbuild (#850)
* Update CLIC deps: Global switches are now only accepted before the subcommand
* Alr.Commands.Build: forward subcommand args to gprbuild
This will allow for instance:
$ alr build -f # force build
$ alr build -cargs -g # compile with an extra switch
$ alr build -f -u atomic.adb # only compile atomic.adb
This is exposing more of the gprbuild interface in an Alire workflow.
But I see this as a convenient development trick, and the standard "alr
build" command without extra args should always be enough to build a
crate.
https://github.com/alire-project/alire/issues/698
* Alr.Commands.Clean: fix -X switch handling
The variable Alr.commands.Scenario was hidden by
Alr.Commands.Clean.Scenario.
* Document changes
* scripts/ci-github.sh: move alr global switches
* Alire.Spawn: typo
Alejandro R Mosteo [Wed, 15 Sep 2021 11:44:03 +0000 (13:44 +0200)]
New On_Demand action type (#847)
* New On_Demand action for future-proofing
* Test for on-demand actions
Fabien Chouteau [Tue, 14 Sep 2021 13:58:16 +0000 (15:58 +0200)]
Alire.Config.Edit: fix for --config with relative path (#848)
Alejandro R Mosteo [Tue, 14 Sep 2021 08:04:43 +0000 (10:04 +0200)]
Checks on compatibility of tools given via `--select <release>` (#846)
* Don't present incompatible tools in the assistant
* Sort gnats by version in the assistant
Rather than by name
* Detect origin conflicts in `alr toolchain --select <>`
* Use already configured tool origin as filter
* New test for checks on --select <releases>
* Self-review tweaks
Alejandro R Mosteo [Tue, 14 Sep 2021 08:03:54 +0000 (10:03 +0200)]
Don't present incompatible tools in the assistant (#844)
Alejandro R Mosteo [Tue, 14 Sep 2021 08:00:38 +0000 (10:00 +0200)]
Sort GNATs by version in the assistant (#845)
Rather than by name
Alejandro R. Mosteo [Mon, 13 Sep 2021 19:06:45 +0000 (21:06 +0200)]
Merge remote-tracking branch 'alire/master' into next
Alejandro R Mosteo [Fri, 10 Sep 2021 12:07:35 +0000 (14:07 +0200)]
Port to `ada_toml` for TOML 1.0 (#836)
* Port to `ada_toml` for TOML 1.0
* Better check in scenario loader
Fabien Chouteau [Fri, 10 Sep 2021 12:05:07 +0000 (14:05 +0200)]
Alire.Config: replace with CLIC.Config (#841)
Alejandro R Mosteo [Fri, 10 Sep 2021 11:14:58 +0000 (13:14 +0200)]
Merge changes since rc2 into 1.1 branch for rc3
Merge changes since rc2 into 1.1 branch for rc3
Alejandro R Mosteo [Fri, 10 Sep 2021 11:12:41 +0000 (13:12 +0200)]
Bump version for 1.1 rc3 (#838)
Fabien Chouteau [Fri, 10 Sep 2021 10:52:30 +0000 (12:52 +0200)]
Refactoring: remove string subprograms from Alire.Utils/Alr.Utils and use AAA.Strings (#837)
* Refactoring: remove string subprograms from Alire.Utils/Alr.Utils and use AAA.Strings
* Refactoring: AAA.Strings on Windows code
Alejandro R Mosteo [Fri, 10 Sep 2021 09:23:03 +0000 (11:23 +0200)]
Fix missing action triggers (#835)
* Run post-fetch for the root crate and linked deps
* Update actions test
* A.Prop.Actions: Documentation on action triggers
* New test for action triggers in dependencies
* Document new action "lifecycle"
* Fix double-post-fetch for the root crate in `alr get`
Alejandro R. Mosteo [Thu, 9 Sep 2021 15:49:51 +0000 (17:49 +0200)]
Merge remote-tracking branch 'alire/master' into next
Alejandro R Mosteo [Thu, 9 Sep 2021 15:45:51 +0000 (17:45 +0200)]
Incremental building of dependencies (#832)
* Move build to Roots and incrementally do it
* Prebuild only crates declaring executables
* Test for new incremental build
* Self-review fixes
* Fix for differing error code on Windows
And minor bug in which the code as improperly assumed to be positive
Fabien Chouteau [Thu, 9 Sep 2021 10:31:42 +0000 (12:31 +0200)]
Alr.Commands.Toolchain: tweak for multiple components and install dir (#822)
* Alr.Commands.Toolchain: tweak for multiple components and install dir
This patch adds support of multiple components and allow
--disable-assistant with all commands so that it is possible to
configure all the toolchain stuff in one command:
$ alr toolchain --select gnat_native gprbuild --disable-assistant
The patch also introduces a --install-dir switch to allow installation
in any directory. This can be useful for people willing to use the Alire
toolchain outside of an Alire workflow. It would be better if the root
dir of the archive (e.g. gprbuild_21.0.0_349f6f95) was skipped so that
all the tools would be available from <INSTALL_DIR>/bin/.
* tests: increase gnat_native version in fixture index and add more tests
* Alr.Commands.Toolchain: print list only when no command is specified
* tests/toolchain/custom_install_dir: fix paths for Windows and second dir
* Fix PR comments
Fabien Chouteau [Mon, 6 Sep 2021 09:37:16 +0000 (11:37 +0200)]
Alr.Commands: disable simple_logging TTY (#827)
Fix #823
Paul Jarrett [Mon, 6 Sep 2021 08:15:02 +0000 (04:15 -0400)]
Fix typo in generated project file in init alire.toml (#824)
Alejandro R Mosteo [Thu, 2 Sep 2021 14:52:25 +0000 (16:52 +0200)]
Mark binaries with the x86_64 arch (#821)
Alejandro R. Mosteo [Thu, 2 Sep 2021 08:25:39 +0000 (10:25 +0200)]
Merge remote-tracking branch 'alire/master' into release/1.1
Alejandro R Mosteo [Thu, 2 Sep 2021 08:21:56 +0000 (10:21 +0200)]
Move version out of root package (#818)
This way changing it does not require recompiling absolutely everything.
Alejandro R Mosteo [Thu, 2 Sep 2021 07:14:57 +0000 (09:14 +0200)]
Fix bug when $XDG_CONFIG_HOME is defined (#816)
Fabien Chouteau [Wed, 1 Sep 2021 08:52:41 +0000 (10:52 +0200)]
Extract sub-command handling (alr <command>) (#806)
* Extract sub-command handling (alr <command>)
The goal of this big refactoring is to extract the handling of
sub-commands to make it available for other projects.
The SubCommander packages (name open to changes) can be extracted to a
dedicated crate or to AAA.
There is at least one regression which is the support of -X for alr
build.
* Alr.Commands.Toolchain: Fix comparison typo from refactoring
* Alr.Commands|SubCommander: Fix exception raise and handling
* Typo
* Address review comments and minor changes
* Another big refactoring on command line handling
The switches are not parsed several times like before. The global
switches parsing is done once, the command specific switch parsing is
done only on the command arguments.
Handling of -X scenario variable switches is now done with regular
GNAT.Command_Line switch handling.
There is a issue with command arguments that contain spaces, it looks
like they are split in multiple arguments. I don't know why.
* Fix args filtering
The concatenation of arguments and re-splitting with
GNAT.OS_Lib.Argument_String_To_List breaks when arguments have
whitespaces: 'alr' 'show' 'a b c' becomes 'alr 'show' 'a' 'b' 'c'.
* Wrap the GNAT Commnand_Line_Configuration to add required features
This was previously done with a GNAT.Command_Line.Extra package that
exploited the internals of GNAT.Command_Line.
This is more portable because less exposed to changes in the internals
of GNAT.Command_Line.
* Rename SubCommander to CLIC.Subcommander and move it to alire/
* Move Alire.Utils.User_Input and Alire.Utils.TTY to CLIC
* Alr.Platforms.Windows: Fix builds
* Import CLIC as submodule
Alejandro R Mosteo [Wed, 1 Sep 2021 08:25:22 +0000 (10:25 +0200)]
Separate dependency recursion from deployment (#815)
* Bump aaa to latest version
* Provide a safe traversal proc for dependencies
Migrate deployment of releases to this call
Alejandro R Mosteo [Mon, 30 Aug 2021 15:25:51 +0000 (17:25 +0200)]
Solver timeout to prevent runaway situations (#813)
Fabien Chouteau [Mon, 30 Aug 2021 09:08:54 +0000 (11:08 +0200)]
Alire.Crate_Configuration: generate a constant with the version of the crate (#810)
With this addition users only have to worry about the version in
alire.toml and it will be propagated to code and gpr files.
Alejandro R Mosteo [Fri, 27 Aug 2021 07:45:09 +0000 (09:45 +0200)]
More thorough error on index version mismatch (#809)
Alejandro R Mosteo [Thu, 26 Aug 2021 09:14:43 +0000 (11:14 +0200)]
Non-interactive toolchain selection with `alr toolchain --select <release>` (#804)
* Allow to select toolchain non-interactively
* Enhance toolchain selection test
Now we test the non-interactive selection, and the local selection
Alejandro R Mosteo [Thu, 26 Aug 2021 08:14:23 +0000 (10:14 +0200)]
Make `alr index` default to --list and cosmetic retouching (#808)
* Make `alr index` default to `--list`
* list indexes with same header format as elsewhere