Hacker News new | ask | show | jobs
by const_cast 300 days ago
Guys say it with me: vendor your packages! VENDER YOUR PACKAGES!
2 comments

How about: commit your dependency lockfiles, make sure they use content-addressing cryptographic checksums like Cargo.lock does.

This is also needed for both reproducible builds and SBOMs.

If you commit the actual source code you're making things worse, because it makes coordinated source code review efforts a lot harder. Also patch management with actual vendored source code is terrible.

And mirror your dependencies.
Vendor or fork?
Corporate needs you to find the difference between the two pictures.

They’re the same picture.