uv/docs/reference
Blair Allan 4b61e65d6c
Add UV_NO_SOURCES as an environment variable (#15883)
## Summary

This is an enhancement that makes the cli flag `--no-sources` an
environment variable - "UV_NO_SOURCES"

Why is this a relevant change? 

When working across different environments, in our case remote vs local,
we often have our packages hosted in a artifact registry but when
developing locally we build our packages from github. This results in us
using the uv.tool.sources table quite a bit however this then also
forces us to use `--no-sources` for all our remote work.

This change enables us to set an environment variable once and to never
have to type --no-sources after every uv run command again.

## Test Plan

Expanded on the current --no-sources tests, to test when
UV_NO_SOURCES=true/false the behaviour is the same as the flag.
Additionally ensured that the cli overrides the env variable.

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2025-11-02 20:25:19 +00:00
..
internals Document metadata consistency expectation (#15683) 2025-10-19 14:29:47 +02:00
policies Windows arm64 and Linux RISC-V64 are Tier 2 supported (#16027) 2025-09-29 17:54:04 +02:00
troubleshooting Fix and improve docs (#13620) 2025-06-10 13:15:38 -05:00
benchmarks.md Add link to benchmarks in documentation (#6257) 2024-08-20 12:54:46 -04:00
cli.md Add UV_NO_SOURCES as an environment variable (#15883) 2025-11-02 20:25:19 +00:00
environment.md Add UV_NO_SOURCES as an environment variable (#15883) 2025-11-02 20:25:19 +00:00
index.md Move Resolver to new Internals section in the Reference (#15465) 2025-08-22 19:26:16 -05:00
installer.md Add UV_ prefix to installer environment variables (#14964) 2025-07-30 01:24:59 +00:00
settings.md Enable first-class dependency exclusions (#16528) 2025-10-31 10:14:12 -04:00