-
-
Notifications
You must be signed in to change notification settings - Fork 164
Go 1.18.4 and golangci 1.48: "Error: File is not gofmt
-ed with -s
(gofmt)"
#535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
After some investigation I think that it maybe because this action uses |
Yes in this issue that I posted and was closed in favor of the current one, I discovered that by locally upgrading to Go1.19, then I got the errors that the GitHub action was complaining about ➡️ golangci/golangci-lint#3069 |
I found it may be related to go1.19's |
Support for go1.19 seemed to introduce a formatting issue: golangci/golangci-lint-action#535
golangci v1.48 uses `go fmt` from go 1.19, but that version of `go fmt` is incompatible with the one in go 1.17 that we use. See golangci/golangci-lint-action#535
golangci v1.48 uses `go fmt` from go 1.19, but that version of `go fmt` is incompatible with the one in go 1.17 that we use. See golangci/golangci-lint-action#535
…, standardise segment and flags being set (#98) * Update Go version in SDK * Add logic to allow user defined cache to be populated * Add flag for initial load so that oldflag check doesn't occur on first load * Update to use more recent ff-test-cases submodule * Pin version of Go lint as per golangci/golangci-lint-action#535
Hi, I wanted to know if there is an ETA to when this issue will be fixed? Or is this not a priority right now? |
I'm facing this issue right now, is there a way around it? |
Signed-off-by: bjwswang <bjwswang@gmail> Changelogs 1. fixed channel creation bug: tlsca not working in fabric-ca 2. able to join peers into channel 3. save channel list in network.status.channels 4. fix orderer override on network creation which should use tlsca in tls 5. fix peer unit test 6. fix golangci-lint test: bug from latest version of golangci-lint(golangci/golangci-lint-action#535)
可以尝试执行 golangci-lint cache clean |
…, standardise segment and flags being set (harness#98) * Update Go version in SDK * Add logic to allow user defined cache to be populated * Add flag for initial load so that oldflag check doesn't occur on first load * Update to use more recent ff-test-cases submodule * Pin version of Go lint as per golangci/golangci-lint-action#535
Uh oh!
There was an error while loading. Please reload this page.
Github actions pulling
golangci-lint
1.48 result in the error:With these settings:
Golang setup:
Rolling back to
golangci-lint
1.47.3 resolves the issue:Resolved:
The text was updated successfully, but these errors were encountered: