-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Make usage of --config-file/UV_CONFIG_FILE visible in verbose output #17182
Copy link
Copy link
Closed
Labels
enhancementNew feature or improvement to existing functionalityNew feature or improvement to existing functionalitygood first issueGood for newcomersGood for newcomerstracingVerbose output and debuggingVerbose output and debugging
Description
Summary
The very end of the section https://docs.astral.sh/uv/concepts/configuration-files/#configuration-files says
uv also accepts a
--config-filecommand-line argument, which accepts a path to auv.tomlto use as the configuration file. When provided, this file will be used in place of any discovered configuration files (e.g., user-level configuration will be ignored).
The option can also come in (rather hidden) via UV_CONFIG_FILE, which was the case for me.
The effect of this option is very powerful - I would claim more powerful than what users intuitively expect.
Its use should thus be mentioned in verbose output.
Right now, it does not even show up in trace output.
Example
Such a line could look like the following:
DEBUG --config-file/UV_CONFIG_FILE is set to /foo/bar/uv.toml, ignoring all user-level configuration
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or improvement to existing functionalityNew feature or improvement to existing functionalitygood first issueGood for newcomersGood for newcomerstracingVerbose output and debuggingVerbose output and debugging