Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
smaddox
on Nov 21, 2024
|
parent
|
context
|
favorite
| on:
/usr/bin/env -S uv run
I've been using this for a few weeks now, and it's really handy. But I did learn the hard way that it fails if you don't have internet connection, even if you already have the venv cached.
usrme
on Nov 21, 2024
|
next
[–]
That's really unexpected! I'd default to the assumption that it would "just work" if all the dependencies are already met.
BiteCode_dev
on Nov 21, 2024
|
prev
[–]
`--offline` :)
chippiewill
on Nov 21, 2024
|
parent
[–]
Except you can't put that in the shebang for the first run
BiteCode_dev
on Nov 21, 2024
|
root
|
parent
[–]
True, for servers you can't warm up, shiv is your best bet:
https://shiv.readthedocs.io/
Or points to your own private pypi instance with --index-url.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: