You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upgrade of Viper to v1.13 is causing issues with the configuration of Revive if the rules array contains certain keys like allowTypesBefore with upper-case-characters. This is because starting with spf13/viper@5247643 Viper recurses into arrays and lower-cases all keys, but Revive has a strict comparison that compares the case of options.
Version of golangci-lint
$ golangci-lint --versiongolangci-lint has version v1.50.0 built from (unknown, mod sum: "h1:+Xmyt8rKLauNLp2gzcxKMN8VNGqGc5Avc2ZLTwIOpEA=") on (unknown)
$ go version && go envgo version go1.19.2 linux/amd64GO111MODULE=""GOARCH="amd64"GOBIN=""GOCACHE="/home/pks/Development/gitlab/.cache/go-build"GOENV="/home/pks/Development/gitlab/.config/go/env"GOEXE=""GOEXPERIMENT=""GOFLAGS=""GOHOSTARCH="amd64"GOHOSTOS="linux"GOINSECURE=""GOMODCACHE="/home/pks/Development/gitlab/.go/pkg/mod"GONOPROXY=""GONOSUMDB=""GOOS="linux"GOPATH="/home/pks/Development/gitlab/.go"GOPRIVATE=""GOPROXY="https://proxy.golang.org,direct"GOROOT="/usr/lib/go"GOSUMDB="sum.golang.org"GOTMPDIR=""GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"GOVCS=""GOVERSION="go1.19.2"GCCGO="gccgo"GOAMD64="v1"AR="ar"CC="x86_64-gentoo-linux-musl-gcc"CXX="x86_64-gentoo-linux-musl-g++"CGO_ENABLED="1"GOMOD="/home/pks/Development/gitlab/gdk/gitaly/go.mod"GOWORK=""CGO_CFLAGS="-g -O2"CGO_CPPFLAGS=""CGO_CXXFLAGS="-g -O2"CGO_FFLAGS="-g -O2"CGO_LDFLAGS="-g -O2"PKG_CONFIG="pkg-config"GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build227433220=/tmp/go-build -gno-record-gcc-switches"
Welcome
Description of the problem
The upgrade of Viper to v1.13 is causing issues with the configuration of Revive if the rules array contains certain keys like
allowTypesBefore
with upper-case-characters. This is because starting with spf13/viper@5247643 Viper recurses into arrays and lower-cases all keys, but Revive has a strict comparison that compares the case of options.Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
Not applicable.
The text was updated successfully, but these errors were encountered: