Skip to content

Conversation

@mtrmac
Copy link
Contributor

@mtrmac mtrmac commented Sep 16, 2021

This is a backport of #1427 for the release-1.4 branch.

Marked as draft to ensure there is consensus on this (vs. pinning an earlier Go version).


Go 1.17 introduces a much more reasonable build constraint format, and gofmt now fails without using it.

Sadly we still need the old format as well, to support <1.17 builds.

Signed-off-by: Miloslav Trmač mitr@redhat.com

@mtrmac mtrmac changed the title release-1.4: Run (gofmt -s -w release-1.4: Run (gofmt -s -w) Sep 16, 2021
@rhatdan
Copy link
Member

rhatdan commented Sep 19, 2021

I don't see how this breaks anything, so LGTM

@rhatdan
Copy link
Member

rhatdan commented Sep 19, 2021

@vrothberg PTAL

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, feel free to merge once the draft is removed

@mtrmac
Copy link
Contributor Author

mtrmac commented Sep 20, 2021

Alternative: #1454. This also only matters if #1449 is reverted.

@cevich cevich self-requested a review September 20, 2021 15:39
Go 1.17 introduces a much more reasonable build constraint format, and gofmt now fails without using it.

Sadly we still need the old format as well, to support <1.17 builds.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac marked this pull request as ready for review September 23, 2021 17:22
@mtrmac mtrmac merged commit 601eb88 into containers:release-1.4 Sep 23, 2021
@mtrmac mtrmac deleted the 1.4-gofmt-1.7 branch September 23, 2021 17:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants