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

Insight into environment/configuration variables #1690

Open
mosteo opened this issue May 29, 2024 · 0 comments
Open

Insight into environment/configuration variables #1690

mosteo opened this issue May 29, 2024 · 0 comments
Labels
semver: minor Minor-breaking change (new feature) type: feature New feature or request
Milestone

Comments

@mosteo
Copy link
Member

mosteo commented May 29, 2024

The kind of problems being addressed in alire-project/alire-index#1082 made me think about this.

It would be nice to have a way of seeing all configuration and environment variables and what/where are being being set. Similar to how with alr printenv you can see all paths, but tailored to the parameters that affect the build. More rationale:

We don't normally want libraries to set their own variables (unless it is absolutely univocal due to environment), so there may be unset gpr variables that require setting, or whose defaults may be not always prefereable. Currently, you cannot get this information for all releases in the solution in a simple way, as it is scattered through manifests.

Something like alr build --scenario that gave this kind of output:

gnoga=2.1.2
simple_components=4.68.0
   target_os (gpr var) := Linux (set by mycrate, gnoga)
mycrate=0.1.0-dev
   flavor (config var) in (Wayland, X11) (unset)

It should show what is unset with its possible values, what is set in the environment, and what is set by a crate or more

@mosteo mosteo added type: feature New feature or request semver: minor Minor-breaking change (new feature) labels May 29, 2024
@mosteo mosteo added this to the 2.x milestone May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Minor-breaking change (new feature) type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant