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

fix: show global config in info command #1807

Merged

Conversation

ruben-arts
Copy link
Contributor

fixes #1013

@nichmor
Copy link
Contributor

nichmor commented Aug 14, 2024

some findings:

  • https://pixi.sh/latest/reference/pixi_configuration/
    in docs we said that
    To find the locations where pixi looks for configuration files, run pixi with -v or --verbose.

    Running cargo run -- info --verbose I can't find any logs about where it looks for global configuration.
    Screenshot 2024-08-14 at 16 06 02

  • Running with -vvv I have following output:

DEBUG pixi_config: Loading config from /etc/pixi/config.toml
DEBUG pixi_config: Failed to load system config: /etc/pixi/config.toml (error: failed to read config from '/etc/pixi/config.toml')
DEBUG pixi_config: Loading config from /Users/graf/.config/pixi/config.toml
DEBUG pixi_config: Failed to load global config: /Users/graf/.config/pixi/config.toml (error: failed to read config from '/Users/graf/.config/pixi/config.toml')
DEBUG pixi_config: Loading config from /Users/graf/Library/Application Support/pixi/config.toml
DEBUG pixi_config: Failed to load global config: /Users/graf/Library/Application Support/pixi/config.toml (error: failed to read config from '/Users/graf/Library/Application Support/pixi/config.toml')
DEBUG pixi_config: Loading config from /Users/graf/.pixi/config.toml
DEBUG pixi_config: Failed to load global config: /Users/graf/.pixi/config.toml (error: failed to read config from '/Users/graf/.pixi/config.toml')
DEBUG pixi_config: Loading config from /Users/graf/projects/oss/pixi-3/.pixi/config.toml
DEBUG pixi_config: Failed to load local config: /Users/graf/projects/oss/pixi-3/.pixi/config.toml (error: failed to read config from '/Users/graf/projects/oss/pixi-3/.pixi

maybe we can change the debug message and just tell that config.toml is totally missing?

  • If I don't have a config location,
    instead of this:
    Config locations:

maybe we can output something like this:

Config locations: no config file has been found

Other than that, it looks very good!

@ruben-arts ruben-arts enabled auto-merge (squash) August 16, 2024 14:17
@ruben-arts ruben-arts merged commit e3b2fd8 into prefix-dev:main Aug 16, 2024
31 checks passed
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.

Add found global configuration files to pixi info
2 participants