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

Bits from the alr share feat to be kept #1399

Merged
merged 4 commits into from
Jul 18, 2023

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Jul 3, 2023

Refactorings and a few minor bits that will come in handy later on

@mosteo mosteo marked this pull request as ready for review July 3, 2023 20:13
@mosteo mosteo requested a review from Fabien-Chouteau July 3, 2023 20:13
@@ -17,6 +17,10 @@ package body Alire.Config.Edit is
type String_Access is access String;
Config_Path : String_Access;

-- Separately loaded configs to be able to ascertain where a config value
-- is coming from.
Level_DB : array (Level) of CLIC.Config.Instance;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So there are 3 DBs now this one and the two here? It seems overkill.

There's an origin field for every config value, we might be able to use that. Or we remove the common DB and only use the Level_DB with a getter function that will first look in local then global.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, I had not seen the origin field. Will try to use that.

@mosteo mosteo merged commit a54e730 into alire-project:master Jul 18, 2023
@mosteo mosteo deleted the pick/shared branch July 18, 2023 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants