News for hackers. Stuff that matters.
Re:Go vgo: Semantic Versioning and Human Error by kasey_junk on Monday May 21, 2018 @09:55PM (#17123251)
Because every other dependency management system has realized that nothing about the version number actually tells you anything about compatibility & so they don’t even try.

That vgo encodes semver as sone sort of contract system is crazy pants on a whole new level.

Re:Go vgo: Semantic Versioning and Human Error by dbaupp on Monday May 21, 2018 @10:14PM (#17123309)
Many package managers interpret semver in a similarly mechanical way, e.g. npm, bundler, cargo (and, I think, elm-package, and I'm sure others too), but they choose different versions based on that information.
Re:Go vgo: Semantic Versioning and Human Error by mzl on Tuesday May 22, 2018 @02:16AM (#17124047)
And crucially, in these systems you are given an escape hatch (declaring versions that are not ok), which vgo does not support.
Re:Go vgo: Semantic Versioning and Human Error by hectormalot on Tuesday May 22, 2018 @06:15AM (#17124880)
I think vgo allows you exclude specific versions in go.mod. It only works for specific versions, not ranges though
Re:Go vgo: Semantic Versioning and Human Error by mzl on Tuesday May 22, 2018 @07:14AM (#17125093)
There are exclusions, but they are only available for the current module:

> Exclusions only apply to builds of the current module. If the current module were required by a larger build, the exclusions would not apply.

https://research.swtch.com/vgo-tour

Re:Go vgo: Semantic Versioning and Human Error by cdoxsey on Monday May 21, 2018 @10:10PM (#17123301)
Sure they do. What if I do want to share the same struct between packages? I need both of my dependencies to share the same version of their dependant packages.

I don't think I understand what you're getting at. In ruby I can say I depend on a version > 1.2.0 and some other project could use my package and use version 1.2.1, thus altering my dependency. Bundler lets me do that because it makes assumptions about what version numbers mean.

The lock file makes sure this only changes when I want it too, but semver is an integral part of the system