alire icon indicating copy to clipboard operation
alire copied to clipboard

Gprbuild confusion between normal & external versions

Open simonjwright opened this issue 1 year ago • 1 comments

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?

simonjwright avatar Jan 26 '24 13:01 simonjwright

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.

mosteo avatar Feb 08 '24 17:02 mosteo