3 ms·
The event-stream debacle shows to me how crazy it is that lessons we've known for literally decades seemed to need to be relearned by the Node community every c
by hn_throwaway_99 8y ago
The event-stream debacle shows to me how crazy it is that lessons we've known for literally decades seemed to need to be relearned by the Node community every couple months (and I say this as someone who is primarily a Node developer now).
Back in the early 00s I worked on a software build system (Java) that had to be able to guarantee reproducibility of past versions of builds for code escrow purposes, and to do that it needed to be able to run builds without a live internet connection to ensure we didn't have unintended external dependencies.
The fact that bitpay didn't lock down their version numbers of dependencies, and are thus at the whim of whatever changes upstream of them are gleefully picked up, is crazy, especially for a crypto wallet.
- nepeckman 8y ago> The fact that bitpay didn't lock down their version numbers of dependencies, and are thus at the whim of whatever changes upstream of them are gleefully picked up, is crazy, especially for a crypto wallet. Would that have helped though? This dependency was several layers down, not a direct dependency of copay. I'm under the impression that even if bitpay locked their direct dependency, if that dependency auto updates _its_ dependencies, the result is the same.
- javagram 8y agoThat’s not correct anymore. NPM has a file called “package-lock.json” which locks all dependencies including dependencies of dependencies and so on.
- jbaiter 8y agoFunny thing is: They did actually lock down the version numbers of dependencies, they just didn't bother to check the updated dependencies: https://github.com/bitpay/copay/commit/6cc4b757f6fbd111b9716b50d645390dd1f15105#diff-32607347f8126e6534ebc7ebaec4853dL12251 https://github.com/bitpay/copay/commit/6cc4b757f6fbd111b9716...
- dmortin 8y ago> The fact that bitpay didn't lock down their version numbers of dependencies, and are thus at the whim of whatever changes upstream of them are gleefully picked up, is crazy, especially for a crypto wallet. What it they lock down a version with compromised code in it well before it is discovered? Locking down does not help if checkins are not scrutinized for malicious code.
- nialv7 8y agoThe problem is not that they don't lock down. The problem is nowadays no one has the ability to go through and vet every single version updates of every dependencies they use.