Re:Self-contained Python scripts with uv
by Gud on Sunday March 30, 2025 @03:49PM
(#43526999)
curl | sh is an abhorrent practice and should never be used.
[ Parent
| on HN ]
Re:Self-contained Python scripts with uv
by tempaccount420 on Sunday March 30, 2025 @05:43PM
(#43527937)
The alternative is to wait for the 10 different distros to all package your program and then update it once every blue moon.
Why do you use 10 different distros that only get updated once in a blue moon?
I am not using 10 different OSs/distors, but across every potential user of my tool, it could very easily be 10+.
No, the alternative is to package it yourself and offer it with a signing key. If you make a .deb and .rpm, you’ve covered a large majority of end users.
Re:Self-contained Python scripts with uv
by tempaccount420 on Monday March 31, 2025 @11:31AM
(#43536196)
That sounds worse than the status quo, a lot of developers use Arch Linux, NixOS, other uncommon (to non-devs) distros.
Why is signing key with .deb/.rpm better than `curl | sh` from a HTTPS link on a domain owned by the author? .deb/.rpm also contain arbitrary shell commands.
If the shell script happens to have key verification built in to it, then not much from the perspective of provenance verification, but that’s rare IME. Also, using the OS’s package manager means that you can trivially uninstall it.
It's often both useful and appropriate in Dockerfiles.