-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Bug with GitHub action: File is not gofmt
-ed with -s
(gofmt) with version 1.48.0
#3069
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Ok so I downloaded go1.19: $ go install golang.org/dl/go1.19@latest
$ go1.19 download Then I ran the $ go1.19 fmt ./... To my surprise, it did correct all of the issues that the golangci-lint action was complaining (and others, that it was sure to complain about). That fixes it. But the bug for me is still there: using name: go lint
on: [push]
jobs:
sdk:
runs-on: ubuntu-latest
steps:
- name: set up go
uses: actions/setup-go@v3
with:
go-version: 1.18
id: go
- name: git clone
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest |
Same. I'm using go-version >=1.18 and version latest |
Close in favor of golangci/golangci-lint-action#535 |
Welcome
Description of the problem
This github action is failing saying that
File is not
gofmt-ed with
-s(gofmt)
. It is failing on three separate files. Running the same version locally reveals that the files are ok. I tried togofmt
the files with-s
and-w
to no avail. Locally, there are no changes and everything looks ok. This started happening after the update tov1.48.0
on the GitHub action, given that we use the latest.Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
The following files have the same error:
The text was updated successfully, but these errors were encountered: