Skip to content

Conversation

@thaJeztah
Copy link
Member

Older versions of Go do not format these comments, so we can already
reformat them ahead of time to prevent gofmt linting failing once
we update to Go 1.19 or up.

Result of:

gofmt -s -w $(find . -type f -name '*.go' | grep -v "/vendor/")

With some manual adjusting.

@codecov-commenter
Copy link

codecov-commenter commented Jul 13, 2022

Codecov Report

Merging #3708 (e893f1d) into master (3564b7d) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #3708   +/-   ##
=======================================
  Coverage   59.06%   59.06%           
=======================================
  Files         289      289           
  Lines       24673    24673           
=======================================
  Hits        14573    14573           
  Misses       9226     9226           
  Partials      874      874           

}

//nolint: unparam
// nolint: unparam
Copy link
Member Author

Choose a reason for hiding this comment

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

FWIW; opened a bug-report in Golang for these; golang/go#53835

@thaJeztah thaJeztah force-pushed the gofmt_119 branch 3 times, most recently from e893f1d to 0a41850 Compare July 19, 2022 16:35
Older versions of Go do not format these comments, so we can already
reformat them ahead of time to prevent gofmt linting failing once
we update to Go 1.19 or up.

Result of:

    gofmt -s -w $(find . -type f -name '*.go' | grep -v "/vendor/")

With some manual adjusting.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah merged commit e5c05a6 into docker:master Jul 19, 2022
@thaJeztah thaJeztah deleted the gofmt_119 branch July 19, 2022 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants