-
Notifications
You must be signed in to change notification settings - Fork 155
[fix] Makefile fallback to using latest semver tag #526
Conversation
29ec808
to
3671e03
Compare
In case DIST_VER is not defined, fallback to using latest semver tag available, instead of building with NULL DIST_VER Signed-off-by: Akis Maziotis <akis.maziotis@mattermost.com>
3671e03
to
e72ed29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 Nice work Akis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
In case DIST_VER is not defined, fallback to using latest semver tag available, instead of building with NULL DIST_VER Signed-off-by: Akis Maziotis <akis.maziotis@mattermost.com>
@phoinixgrr - We have an opportunity to create a dot release for mmctl. Let's use this to backport this one as well. /cc @amyblais |
/cherry-pick release-7.0 |
Cherry pick is scheduled. |
Error trying doing the automated Cherry picking. Please do this manually
|
Needs a manual cherry-pick. |
I think this is already in 7.0 branch https://github.com/mattermost/mmctl/commits/release-7.0. |
Yeah I see that. But is mmctl compiled with that fix? Because from the report here: #528 (comment), the version string isn't showing. cc @phoinixgrr |
I did cherrypick that manually 8 days ago. |
Looking at this report: #528 (comment). The git commit sha contains your fix, but still the version is empty. Looks like we need to look at this again. |
Actually, without your fix, none of the mmctl commands will work. Because all commands run a pre-check to compare the version. |
Thanks for the heads up @agnivade |
@phoinixgrr I've opened a ticket here https://mattermost.atlassian.net/browse/DOPS-1090. |
Summary
Rationale
In case there is no Tag available,
DIST_VER
remains unitilized therefore building with an emptyDIST_VER
variable.For example:
In the above example,
github.com/mattermost/mmctl/v6/commands.Version
is empty.And builds the following binary:
Proposal
In case
DIST_VER
is not defined, fallback to using latest semver tag available, instead of building withNULL
DIST_VER
Ticket Link
Ticket: https://mattermost.atlassian.net/browse/DOPS-1049