▲ | h1fra 3 days ago | ||||||||||||||||
It's a popularity issue; npm is an easy target. I don't see why it wouldn't happen to golang for example. You just need take over the git repo it's over for all users upgrading like npm | |||||||||||||||||
▲ | amiga386 3 days ago | parent | next [-] | ||||||||||||||||
As far as I remember: "go get" doesn't execute downloaded code automatically; there's no "postinstall" script (there can be a manual "go generate" or "go tool" the user may run) Go doesn't upgrade existing dependencies automatically, even when adding a new dependency: you need an explicit "go get -u" You don't use the same tool to both fetch and publish ("go get" vs "git push") so it's less likely a module publisher would get pwned while working on something unrelated. The Go community tends not to "micropublish" so fewer people have or need commit rights to published go modules. Go has a decent standard library so there are fewer "missing core functionality" third-party packages that world + dog depends on. Npm is easier to pwn than Go, Maven, RubyGems, PyPI, CPAN, etc. because the design has more footguns and its community likes it that way | |||||||||||||||||
| |||||||||||||||||
▲ | izacus 3 days ago | parent | prev [-] | ||||||||||||||||
What about Java's Maven, much more popular and longer living? | |||||||||||||||||
|