logoalt Hacker News

Cthulhu_today at 1:59 PM2 repliesview on HN

Nothing that couldn't be automated; in Go land this is (arguably) called vendoring (https://go.dev/ref/mod#vendoring). Good to offload or reduce dependencies on 3rd party dependency hosters, pull a dependency into your own code review tools, and to ensure reproducible builds long term.


Replies

Izkatatoday at 2:33 PM

It's a generic and very old term for committing dependencies to your repo, it's not go-specific.

gbuk2013today at 2:06 PM

I mean there’s nothing stopping you from committing node_modules to git (after running something like https://github.com/timoxley/cruft on it) and reviewing code changes on dependency updates.

I even managed to make that part of the workflow on one team I worked with but several other teams since thought it was a crazy idea. :)