by xg15 · 9y ago · 0 comments
Wait, did I miss something? Wasn't it google who started the "vendor everything" philosophy in the first place?
Node would be even worse.
So the choice is either maintain a fork of every dependency or vendor them, and vendoring is considerably less painful imo.
(I'm not saying it's a good solution, mind you)
That way we can track and keep them in sync without having the problems you described.
You get everything you depend on, stuff it into a folder named third-party, and check it in forever (or until security bugs, features you need, etc). Include all and any licences, this is important.
When dealing with any software that's supposed to be our there for decades, the last thing you want it to have unplanned work because of missing libraries.
See anything with a "cute" license, such as WTFPL? Don't use it for work.
But you can always use shrink-wrap or other package managers that guarantee immutability.
Oh, I guess I should say I love npm/yarn and use it as a core of all my projects. ️