uv icon indicating copy to clipboard operation
uv copied to clipboard

Option to disable linehaul

Open eaubin opened this issue 1 year ago • 3 comments

https://github.com/astral-sh/uv/pull/2493 added linehaul metadata to the uv user-agent string. For example,

  • Windows GHA: uv/0.1.21 {"installer":{"name":"uv","version":"0.1.21"},"python":"3.12.2","implementation":{"name":"CPython","version":"3.12.2"},"distro":null,"system":{"name":"Windows","release":"2022Server"},"cpu":"AMD64","openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

I'd like to use uv at work, but this is causing my network admins some grief. Could an option to disable the linehaul metadata be added?

eaubin avatar Oct 22 '24 19:10 eaubin

Do you know if pip includes an opt-out for this? (just wondering)

zanieb avatar Oct 22 '24 19:10 zanieb

I believe that's controlled through $PIP_USER_AGENT_USER_DATA

eaubin avatar Oct 22 '24 19:10 eaubin

I think that's additive; it doesn't look like it disables linehaul.

https://github.com/pypa/pip/blob/6958e28f366f00373343efcd5a7e776a810cb133/src/pip/_internal/network/session.py#L203

charliermarsh avatar Oct 22 '24 21:10 charliermarsh

iirc pip doesn't allow opt-out either, it's standard telemetry pypi expects

samypr100 avatar Oct 23 '24 23:10 samypr100

My network admins loosened their rules, so its not a requirement for my org anymore. I still think its a good idea to allow opt out (or better yet opt in), but since it's very low priority I'll close the issue.

eaubin avatar Nov 04 '24 19:11 eaubin