Go: x/exp/cmd/gorelease: allow major version comparisons

Created on 19 Aug 2020  路  1Comment  路  Source: golang/go

Currently gorelease does not allow comparing between major versions. E.g. (on v2.0.0) gorelease -base v1.0.0 yields:

gorelease: can't compare major versions: base version v1.0.0 does not belong to module path/to/module/v2

While I can understand that this is not part of the normal release flow, it is incredibly useful for generating changelog data, or just figuring out what changed between two releases. Furthermore this is annoying to do with apidiff directly, because it requires NEW be discoverable in the main module:

git checkout v1.0.0
apidiff path/to/module path/to/module/v2

/cc @jayconrod

NeedsFix Tools modules

Most helpful comment

This is a subset of #39666, which should be fixed by CL 238839 as soon as that's reviewed.

Leaving this open to be fixed by another CL though since it would be handy to say -base=v1.0.0 instead of -base=example.com/[email protected].

>All comments

This is a subset of #39666, which should be fixed by CL 238839 as soon as that's reviewed.

Leaving this open to be fixed by another CL though since it would be handy to say -base=v1.0.0 instead of -base=example.com/[email protected].

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OneOfOne picture OneOfOne  路  3Comments

enoodle picture enoodle  路  3Comments

mingrammer picture mingrammer  路  3Comments

bbodenmiller picture bbodenmiller  路  3Comments

jayhuang75 picture jayhuang75  路  3Comments