Re:Entropic – A Federated Package Manager for JavaScript
by k__ on Friday June 14, 2019 @07:58AM
(#20182228)
The thing I don't get, is, I'm using Git repos as source for my packages for years now, why can't everyone do this?
[ Parent
| on HN ]
Re:Entropic – A Federated Package Manager for JavaScript
by threeseed on Friday June 14, 2019 @08:15AM
(#20182313)
Not everyone tags releases so you're stuck if you need a fixed version of a dependency.
Or you can tie it to Github and then download a release from their CDN.
Re:Entropic – A Federated Package Manager for JavaScript
by Kovah on Friday June 14, 2019 @08:37AM
(#20182441)
You can indeed reference a git repository with a single commit specified, like described in the npm install docs[1].
Not very user friendly, but it works.
Example:
"dependencies": { "myprivatemodule": "git+ssh://[email protected]:user/project.git#commit-hash" }
Re:Entropic – A Federated Package Manager for JavaScript
by k__ on Friday June 14, 2019 @10:03AM
(#20183067)
This! plus treating every commit as major version and be done with it.
Re:Entropic – A Federated Package Manager for JavaScript
by Cthulhu_ on Friday June 14, 2019 @10:36AM
(#20183337)
That's a bit too idealistic; in practice, any commit MAY have a bug which passed quality control. The problem is that it's all down to people's discipline, it's not an enforced standard.
A package manager where every release has to be reviewed, tested and approved before they become generally available would be a pretty interesting case, I know bigger companies who are reluctant to upgrade because of known bugs in the past would be willing to pay for something like that.
Re:Entropic – A Federated Package Manager for JavaScript
by timw4mail on Friday June 14, 2019 @08:42AM
(#20182482)
I'm pretty sure you can use a commit hash as a version, too.
Re:Entropic – A Federated Package Manager for JavaScript
by leshow on Friday June 14, 2019 @08:54AM
(#20182560)
Because versioning & dependencies are a nightmare that way
Re:Entropic – A Federated Package Manager for JavaScript
by roryrjb on Friday June 14, 2019 @08:33AM
(#20182427)
I have only done this partially over the years, but yes I agree, it's a viable alternative and when it comes to private internal modules you don't ever have to worry about singing up to npm enterprise or deploy Nexus or equivalent.
Re:Entropic – A Federated Package Manager for JavaScript
by borntyping on Friday June 14, 2019 @10:07AM
(#20183107)
Because package managers are used for more than just source code - many packages want or need to distribute intermediate or compiled artifacts.