```console
$ go version
go version go1.19.4 windows/amd64
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\matjam\AppData\Local\go-build
set GOENV=C:\Users\matjam\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\matjam\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\matjam\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=C:\Users\matjam\src\tmp
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.19.4
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\matjam\src\aaa\go.mod
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\matjam\src\tmp\go-build888202901=/tmp/go-build -gno-record-gcc-switches
```
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 https://github.com/golangci/golangci-lint/commit/58ebedda6341e2f67d4338eb1d8f75b4a54590d1 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