"Its just a package for X" until its not.
"Its just a package for X" until its not.
I checked out a small project recently and it had over 2000 nom packages as dependencies. The culture around node development was/is just too dependency happy.
I get standing on the shoulders of giants and that not all people are bad, but with thousands of dependencies, the chances of a supply chain issue starts to become significant.
However I don't think the number of dependencies is a useful number: node was one of the first languages to have a build in standard way to get and manage dependencies, which meant that dependencies could be much, much smaller. Boost for C++ is a giant project, so you can say that your C++ project only has a few dependencies, but if C++ had a decent standard dependency manager, projects like Boost were probably split up more.
* I am aware Maven exists for Java, but the cultural expectations for Java were set long before it became a thing.
CPAN? Pip in python? Pear for php?
incorrect, try again please.
[1] https://access.redhat.com/security/vulnerabilities/RHSB-2022...
No more random-source. And no more "automatically pull from master, then build & deploy".
Inside a walled garden / from specific people you trust should be fine. Some automated scanning could maybe be ok-ish at least sometimes.