This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
Create a Go (dep) constraint calculator #659
Closed
Description
https://semver.npmjs.com/ exists, and it's great. We should have an equivalent. Not because NIH or vanity, but because there are real differences in the ecosystems:
- We allow a diversity of constraint types - branches, non-semver tags, revisions
- There are subtle differences in how compatibility range operators (
~
,^
, etc.) work, especially with prereleases and below1.0.0
- There's also cross-type matching, where e.g. different tags can match each other - or branches - if they happen to point at the same underlying immutable revision.
Gophers need a tool that tells them exactly how dep
will behave, not how it probably sorta might. So, we need our own.
gps provides most of the facilities for doing this already (though it's not importable right now - #575). My back-of-the-envelope estimate is that the unique business logic in a backend server that does this would be about 200 LoC. Most of the work will be making a decent frontend.
If someone's interested in working on this, please indicate as much here, and we can flesh out requirements a little more.