-
Beta Was this translation helpful? Give feedback.
Answered by
ldez
Jun 19, 2024
Replies: 1 comment 1 reply
-
Hello, I don't know how the precommit CI works but as you cannot reproduce the problem: $ docker run --rm -it golang:1.22-alpine sh
/go # apk add -q git curl
/go # curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1
golangci/golangci-lint info checking GitHub for tag 'v1.59.1'
golangci/golangci-lint info found version: 1.59.1 for v1.59.1/linux/amd64
golangci/golangci-lint info installed /go/bin/golangci-lint
/go # git clone --quiet https://github.com/stdedos/junit2html.git
/go # cd junit2html/
/go/junit2html # go mod tidy
go: downloading github.com/onsi/ginkgo/v2 v2.13.0
go: downloading github.com/onsi/gomega v1.27.10
go: downloading github.com/go-logr/logr v1.2.4
go: downloading golang.org/x/net v0.14.0
go: downloading golang.org/x/sys v0.12.0
go: downloading github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
go: downloading golang.org/x/tools v0.12.0
go: downloading github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38
go: downloading github.com/google/go-cmp v0.5.9
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/golang/protobuf v1.5.3
go: downloading google.golang.org/protobuf v1.28.0
go: downloading golang.org/x/text v0.12.0
/go/junit2html # golangci-lint run
WARN [linters_context] gocritic: no need to enable check "appendAssign": it's already enabled
WARN [linters_context] gocritic: no need to enable check "argOrder": it's already enabled
WARN [linters_context] gocritic: no need to enable check "assignOp": it's already enabled
WARN [linters_context] gocritic: no need to enable check "badCall": it's already enabled
WARN [linters_context] gocritic: no need to enable check "badCond": it's already enabled
WARN [linters_context] gocritic: no need to enable check "captLocal": it's already enabled
WARN [linters_context] gocritic: no need to enable check "caseOrder": it's already enabled
WARN [linters_context] gocritic: no need to enable check "codegenComment": it's already enabled
WARN [linters_context] gocritic: no need to enable check "defaultCaseOrder": it's already enabled
WARN [linters_context] gocritic: no need to enable check "deprecatedComment": it's already enabled
WARN [linters_context] gocritic: no need to enable check "dupArg": it's already enabled
WARN [linters_context] gocritic: no need to enable check "dupBranchBody": it's already enabled
WARN [linters_context] gocritic: no need to enable check "dupCase": it's already enabled
WARN [linters_context] gocritic: no need to enable check "dupSubExpr": it's already enabled
WARN [linters_context] gocritic: no need to enable check "elseif": it's already enabled
WARN [linters_context] gocritic: no need to enable check "exitAfterDefer": it's already enabled
WARN [linters_context] gocritic: no need to enable check "flagDeref": it's already enabled
WARN [linters_context] gocritic: no need to enable check "flagName": it's already enabled
WARN [linters_context] gocritic: no need to enable check "ifElseChain": it's already enabled
WARN [linters_context] gocritic: no need to enable check "mapKey": it's already enabled
WARN [linters_context] gocritic: no need to enable check "newDeref": it's already enabled
WARN [linters_context] gocritic: no need to enable check "offBy1": it's already enabled
WARN [linters_context] gocritic: no need to enable check "regexpMust": it's already enabled
WARN [linters_context] gocritic: no need to enable check "singleCaseSwitch": it's already enabled
WARN [linters_context] gocritic: no need to enable check "sloppyLen": it's already enabled
WARN [linters_context] gocritic: no need to enable check "sloppyTypeAssert": it's already enabled
WARN [linters_context] gocritic: no need to enable check "switchTrue": it's already enabled
WARN [linters_context] gocritic: no need to enable check "typeSwitchVar": it's already enabled
WARN [linters_context] gocritic: no need to enable check "underef": it's already enabled
WARN [linters_context] gocritic: no need to enable check "unlambda": it's already enabled
WARN [linters_context] gocritic: no need to enable check "unslice": it's already enabled
WARN [linters_context] gocritic: no need to enable check "valSwap": it's already enabled
WARN [linters_context] gocritic: no need to enable check "wrapperFunc": it's already enabled
/go/junit2html # This is run inside a container to avoid any local interference. My best guesses are:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
stdedos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I don't know how the precommit CI works but as you cannot reproduce the problem: