Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve alr toolchain detection of complete toolchain #1752

Open
simonjwright opened this issue Sep 2, 2024 · 3 comments
Open

Improve alr toolchain detection of complete toolchain #1752

simonjwright opened this issue Sep 2, 2024 · 3 comments
Labels
type: enhancement Improvements to existing functionality

Comments

@simonjwright
Copy link
Contributor

See here

Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 6.5.0-1025-azure
NEEDRESTART-KEXP: 6.5.0-1025-azure
NEEDRESTART-KSTA: 1
Note: gprbuild=2021.0.0+0778 set as default in global configuration.
ERROR: Release within requested version not found: gnat_native*
ERROR: Use --force to override compatibility checks between installed toolchain components
@mosteo
Copy link
Member

mosteo commented Sep 2, 2024

It looks like the external gprbuild is being picked up.

It would be still a bug, but could you try to reverse the order of the crates requested? I.e., gnat_native gprbuild rather than the other way around.

@simonjwright
Copy link
Contributor Author

Quite right.

Having reversed the order, picks up gprbuild 22.0.1 and proceeds to the build (which fails, because of an unaasigned-but-unread variable; so not the fault of this issue!)

@mosteo mosteo changed the title Problem with v3 on Ubuntu. Improve alr install detection of complete toolchain Sep 3, 2024
@mosteo
Copy link
Member

mosteo commented Sep 3, 2024

The reason for the issue is that crates are resolved in order and compatibility is checked against the ones already resolved. I guess we can do better, at least if no complete toolchain is found.

@mosteo mosteo changed the title Improve alr install detection of complete toolchain Improve alr toolchain detection of complete toolchain Sep 3, 2024
@mosteo mosteo transferred this issue from alire-project/setup-alire Sep 3, 2024
@mosteo mosteo added the type: enhancement Improvements to existing functionality label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvements to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants