windows: gci gofmt goimports fail due to being unable to parse diff output #3428
Closed
4 tasks done
Labels
duplicate
This issue or pull request already exists
Welcome
Description of the problem
Summary
running
golangci-lint run ./...
gives:disabling
gci
gives:disabling
gofmt
gives:I've tried both the current release of
golangci-lint
as well as what is inHEAD
which contains the fix for macos 58ebedd but this fix does not work for Windows.This is broken on trivial go projects on Windows, so is easily reproducable.
I have tried installing
diffutils
viachoco
(similar to homebrew on Windows)` but it doesn't appear to do anything.Workaround
disable
gci
,gofmt
andgoimports
in.golangci.yml
.Environment
Windows 11 22H2 (OS Build 22621.963)
Running linters standalone
gofmt
gci
Doesn't seem to give any meaningful output, so showing debug output
goimports
same as gci, I guess that means no format needs to be done.
Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Same output for current
HEAD
version.Code example or link to a public repository
go.mod:
main.go:
.golangci.yml:
The text was updated successfully, but these errors were encountered: