Skip to content

gofumpt: rule in v0.3.0 deleted, formatting now conflicts with golangci linting #2637

@katexochen

Description

@katexochen

Welcome

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).
  • Yes, I've tried with the standalone linter if available. (https://golangci-lint.run/usage/linters/)

Description of the problem

In mvdan/gofumpt@6333469, a gofumpt rule was deleted. This change is published within the newest release v0.3.0 of gofumpt. The latest release of golangci-lint still uses gofumpt in version v0.2.1, which leads to a conflict. If I format my code with recent version of gofumpt, gloangci-lint will throw an error when running the gofumpt linter. The used version of gofumpt was already bumped in 5ffadac, it would be really nice to see a release with this change soon.

Version of golangci-lint

Details
$ golangci-lint --version
golangci-lint has version 1.44.2 built from d58dbde5 on 2022-02-17T20:58:06Z

Configuration file

Details
$ cat .golangci.yml
cat: .golangci.yml: No such file or directory

Go environment

Details
$ go version && go env
go version go1.17.1 linux/amd64

Verbose output of running

Details
$ gofumpt -l .
$ golangci-lint run ./... --disable-all --enable gofumpt
xxx.go gofumpt  File is not `gofumpt`-ed

Code example or link to a public repository

Details
type foo interface {
	a() error

	b() error
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions