-
Notifications
You must be signed in to change notification settings - Fork 153
Conversation
Hello @roopakv, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. Per the Mattermost Contribution Guide, we need to add you to the list of approved contributors for the Mattermost project. Please help complete the Mattermost contribution license agreement? This is a standard procedure for many open source projects. Please let us know if you have any questions. We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team. |
/check-cla |
Codecov Report
@@ Coverage Diff @@
## master #381 +/- ##
=======================================
Coverage 67.99% 67.99%
=======================================
Files 44 44
Lines 4490 4490
=======================================
Hits 3053 3053
Misses 1243 1243
Partials 194 194
Continue to review full report at Codecov.
|
@streamer45 would you be able to take a look at this please. |
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.
Thank you @roopakv 👍
awesome. @streamer45 would you also be able to cut a new release after merging this :) 🙏 |
Let me ping someone from our release team and see what we can do about that. /cc @metanerd |
Sure thing! I guess releases 5.36 and up are affected by homebrew? |
@metanerd if you look at Homebrew/homebrew-core#83413, we are unable to update to go 1.17 on homebrew because right now mmctl is not compatible. So after merging this PR if you could cut a new release that would unblock brew |
@roopakv Sorry, I have seen this, but I am not sure which release version of mmctl homebrew pulls in. Would you be able to provide me further information please? I can unfortunately not check this on my desktop. |
@roopakv Ah, I see. Awesome, thank you! I can provide a Patch release after merge. |
@metanerd @streamer45 anything i need to do before we can merge? :) |
Staying safe and taking care! ;) |
Thank you for the PR @roopakv! I guess the problem here is that brew by itself is also doing a gofmt, which is causing the new lines to be added. Go 1.17 is of course fully backwards compatible with the old syntax. I am wondering if it would be possible for brew to fetch and build from master for the time being until we cut a new release? I am not sure if cutting a new release is justified because the gofmt command from a later release generates some new lines. This PR is of course good to be merged. |
@agnivade brew has to fetch from a release never master. would really appreciate unblocking go 1.17 for the whole community rather than having to wait for just mmctl. you can read more about why brew moves the community forward rather than pin different versions for just a single formuale on the issue linked above. @agnivade can you also merge the PR? I don't have that ability to do so myself |
Thanks @roopakv. Building from 1.17 is fine, and forcing the community to always be on the latest is also okay. But 1.17 was released explicitly on the premise that older build tags will still work. The real issue here is brew is blocked on the gofmt errors which I believe should should not be something that brew should enforce. Making a patch release to fix a cosmetic issue changes the semantics of a patch release. That being said, I would defer to @amyblais and @metanerd on this matter. |
@agnivade that makes sense and I will work with the brew folks to avoid running gofmt on builds. If you look at the other packages having issues they were forced to upgrade x/sys because of a crash with go 1.17 :) However right now I urge mmctl to make an exception rules and cut a release :) |
Is there anything specific needed from me for this? Does it mean this would get included in a v5.38.2 dot release? |
AFAIK nothing specific needed. It will be auto included in the v5.38.2 dot release. I will change the version, so it gets included in server. |
* Lock CI from /release-5.38 (#369) Co-authored-by: Mmbot <mmbot@mattermost> * [Build] Support go 1.17 (#381) * Build on 1.17.0 for #381 (#383) * Build on 1.17.0 for #381 * Use consistent image (#384) * Use consistent and newer images. * Bump cache key Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Mmbot <mmbot@mattermost> Co-authored-by: Roopak Venkatakrishnan <roopak.v@gmail.com>
@roopakv Thank you for your patience! Would be ready to bump this now: https://github.com/Homebrew/homebrew-core/blob/0c0565210aefb74878d87a8af3736680ea7da6a8/Formula/mmctl.rb#L5 |
Summary
Updates mmctl to support go1.17 as described here: https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
This is currently blocking homebrew here: Homebrew/homebrew-core#83413
Ticket Link
#363