[x] I've included complete steps to reproduce my issue.
Describe the bug
Toolchain consistency breaks if alr's architecture changes.
To Reproduce
Steps to reproduce the behavior:
On a Mac Apple Silicon machine
Install alr x86-64 version
alr toolchain --select and pick gnat_native
X86-64 toolchain gets installed
Install alr arm64 version
No project will build now because kb: warning: can't find a toolchain for the following configuration: language 'Ada', target 'aarch64-darwin', default runtime
alr toolchain --select will not install the correct toolchain
Expected Behavior
At step 7, alr should detect that gnat_native does not point to the correct host arch and thus should reinstall the correct toolchain
alr version
Paste here the output of alr version.
APPLICATION
alr version: 2.0.2+9b80158
libalire version: 2.0.2+9b80158
compilation date: 2024-10-09 16:57:49
compiled with version: 14.2.0
CONFIGURATION
settings folder: /Users/rongcuid/.config/alire
cache folder: /Users/rongcuid/.local/share/alire
vault folder: /Users/rongcuid/.local/share/alire/releases
build folder: /Users/rongcuid/.local/share/alire/builds
temp folder: /private/var/folders/tw/8vsfcypj5rx4gbst7z5nrj7c0000gn/T
force flag: FALSE
non-interactive flag: FALSE
community index branch: stable-1.3.0
compatible index versions: ^1.1 & <=1.3.0
indexes folder: /Users/rongcuid/.config/alire/indexes
indexes metadata: OK
index #1: (community) git+https://github.com/alire-project/alire-index#stable-1.3.0
toolchain folder: /Users/rongcuid/.local/share/alire/toolchains
toolchain assistant: disabled
tool #1 gnat: gnat_native=14.2.1
tool #2 gprbuild: gprbuild=24.0.1
system package manager: /opt/local/bin/port
distro detection disabled: FALSE
WORKSPACE
root status: VALID
root release: ada_ray=0.1.0-dev
root load error: none
root folder: /Users/rongcuid/tmp/ada_ray
current folder: /Users/rongcuid/tmp/ada_ray
SYSTEM
distribution: MACPORTS
host-arch: AARCH64
os: MACOS
target: NATIVE
toolchain: USER
word-size: BITS_64
alr logs
If pertinent, paste the output of alr -vv -d <your command> here.
Checklist
alr version
.Describe the bug Toolchain consistency breaks if
alr
's architecture changes.To Reproduce Steps to reproduce the behavior:
alr
x86-64 versionalr toolchain --select
and pickgnat_native
alr
arm64 versionkb: warning: can't find a toolchain for the following configuration: language 'Ada', target 'aarch64-darwin', default runtime
alr toolchain --select
will not install the correct toolchainExpected Behavior At step 7,
alr
should detect thatgnat_native
does not point to the correct host arch and thus should reinstall the correct toolchainalr
version Paste here the output ofalr version
.alr
logs If pertinent, paste the output ofalr -vv -d <your command>
here.