Arghblarg@lemmy.catoTechnology@lemmy.world•Hundreds of code libraries posted to NPM try to install malware on dev machinesEnglish
122·
7 hours agoI don’t know much about NPM (having avoided JS as much as possible for my entire life), but golang seems to have a good solution: ‘vendoring’. One can choose to lock all external dependencies to local snapshots brought into a project, with no automatic updating, but with the option to manually update them when desired.
Ah, good. I wonder why it isn’t used more often – this wouldn’t be such a huge problem then I would hope. (Let me guess – ‘convenience’, the archenemy of security.)