Struggling with Alire

In my crate “si_units”, there is a generated directory “alire” holding:

  • directory flags
  • file alire.lock
  • file build_hash_inputs
  • file settings.toml

build_hash_inputs says:

  • profile:si_units=DEVELOPMENT
  • switches:si_units=-Og,-fdata-sections,-ffunction-sections,-g,…

settings.toml says:

  • last_build_profile = “si_units=DEVELOPMENT”

These were the values automatically set in “si_units_config.gpr” when my crate was created.
I changed the corresponding values meanwhile in “si_units_config.gpr”.
Is this discrepancy detrimental?
If not, what’s the purpose of these outdated files?
How are they updated?

Further findings in directory “config”:
There are three files si_units.(ads,gpr,h) all holding the same information for the following items:
Crate_Version, Build_Profile
I just changed the gpr file contents (see above). What’s the effect of these discrepancies?

What a terrible nuisance having the same info at a plethory of different files!
Are there more of these?
Is there a simple way to keep them synchronized?

A liar seems a very good moniker for Alire!

About my problems with “si_units_config.gpr” in a separate thread.

My general rule of thumb is to not change anything in the alire directory. It can be changed each time you compile. I treat them as temporary.

If I need any changes I make them in the primary GPR file for the project.