alire-project / alire

Command-line tool from the Alire project and supporting library
GNU General Public License v3.0
288 stars 49 forks source link

Gprbuild confusion between normal & external versions #1548

Open simonjwright opened 9 months ago

simonjwright commented 9 months ago

In the ubuntu-latest workflow of the Ada example in my fork of sdl2-examples, we’re seeing that

The workflow uses the version: "nightly".

The run above was today, and succeeded, but a similar run executed today in the repo of which mine is a fork failed with "ERROR: Requested tool configured as gprbuild=22.0.1 but not installed: gprbuild".

Would this problem go away if Alire didn’t choose the external gprbuild when a 'normal' (?) crate is available?

mosteo commented 9 months ago

The different selected version likely comes from --select attempting to find a gprbuild compatible with the gnat already selected. Was there one in your second run? --install won't attempt to do that, so it will select the newest version, provided by the external one in that case.

As for the error, it should have been fixed after #1533. It is possible you have to invalidate the action caches in your org.