dep ensure: Incorrect version range syntax interpretation for 0.x versions

Created on 4 Apr 2017  路  3Comments  路  Source: golang/dep

Given a sub 1.y version, e.g. 0.8.z, ^ (caret) currently expands to:

dep ensure 'github.com/pkg/errors@^0.8.0' => "version": ">=0.8.0, <1.0.0"`

But should expand to:

dep ensure 'github.com/pkg/errors@^0.8.0' => "version": ">=0.8.0, <0.9.0"`
bug

Most helpful comment

This is fixed now, with the latest semver update.

All 3 comments

Thanks for filing the report! Sorry it took me a while to respond.

I actually ran across this independently today, while hammering out some kinks in our semver lib. There's a PR open that, once its merged and we merge in from upstream, will fix this: Masterminds/semver#53

Nice! Thanks for the constant hard work.

This is fixed now, with the latest semver update.

Was this page helpful?
0 / 5 - 0 ratings