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

Confusion between Alire Configuration (alr config) and Crate configuration #1607

Closed reznikmm closed 8 months ago

reznikmm commented 8 months ago

Describe the bug It seems configuration variable don't work.

To Reproduce

But the variable is there:

alr config --list --show-origin
LOCAL: last_build_profile=DEVELOPMENT
GLOBAL: toolchain.external.gprbuild=FALSE
GLOBAL: toolchain.assistant=false
LOCAL: cortex_m.core=m4f
GLOBAL: toolchain.use.gnat=gnat_arm_elf=13.2.1
GLOBAL: toolchain.use.gprbuild=gprbuild=22.0.1
GLOBAL: toolchain.external.gnat=FALSE

Expected Behavior I expect:

alr version

alr version APPLICATION alr version: 2.0-rc1 libalire version: 2.0-rc1 compilation date: 2024-02-29 11:12:30 compiled with version: 13.2.0 CONFIGURATION config folder: /root/.config/alire cache folder: /root/.local/share/alire vault folder: /root/.local/share/alire/releases build folder: /root/.local/share/alire/builds temp folder: /root/test force flag: FALSE non-interactive flag: FALSE community index branch: stable-1.3.0 compatible index versions: ^1.1 & <=1.3.0 indexes folder: /root/.config/alire/indexes indexes metadata: OK index #1: (community) git+https://github.com/alire-project/alire-index#stable-1.3.0 toolchain folder: /root/.local/share/alire/toolchains toolchain assistant: disabled tool #1 gnat: not configured tool #2 gprbuild: not configured system package manager: /usr/bin/apt distro detection disabled: FALSE WORKSPACE root status: VALID root release: test=0.1.0-dev root load error: none root folder: /root/test current folder: /root/test SYSTEM distribution: UBUNTU host-arch: X86_64 os: LINUX target: NATIVE toolchain: USER word-size: BITS_64
Fabien-Chouteau commented 8 months ago

Hi Max,

alr config is for Alire configuration, not crate configuration. I know it's confusing, but everything is working fine.

Edit alire.toml to put the cortex_m crate configuration value in it:

[configuration.values]
cortex_m.core = "m4f"