Commit 730495a
Remove golangci-lint from tools.go to fix CI OOMKilled
The CI lint step was hitting OOMKilled (exit code 137) because
golangci-lint loads the entire module dependency graph into memory,
including all OTE dependencies from the synced vendor directory.
Removed golangci-lint from tools.go to exclude its massive dependency
tree (~3k vendor files) from go.mod/vendor.
The Makefile continues using:
GOFLAGS=-mod=mod go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint
This downloads golangci-lint on-demand without making it a formal
module dependency, significantly reducing memory pressure in CI.
Also updated .golangci.yaml to skip vendor and test directories
from linting (defense in depth).
Changes:
- Removed golangci-lint import from tools.go
- Updated .golangci.yaml with skip-dirs configuration
- Deleted 2,977 golangci-lint vendor files
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent c740671 commit 730495a
2,982 files changed
Lines changed: 5 additions & 495586 deletions
File tree
- vendor
- 4d63.com
- gocheckcompilerdirectives
- checkcompilerdirectives
- gochecknoglobals
- checknoglobals
- github.com
- 4meepo/tagalign
- Abirdcfly/dupword
- Antonboom
- errname
- pkg/analyzer
- nilnil
- pkg/analyzer
- testifylint
- analyzer
- internal
- analysisutil
- checkers
- printf
- config
- testify
- BurntSushi/toml
- internal
- Djarvur/go-err113
- GaijinEntertainment/go-exhaustruct/v3
- analyzer
- internal
- comment
- pattern
- structure
- OpenPeeDeeP/depguard/v2
- internal/utils
- alecthomas
- chroma/v2
- formatters
- html
- svg
- lexers
- embedded
- quick
- styles
- go-check-sumtype
- alexkohler
- nakedret/v2
- prealloc
- pkg
- alingse
- asasalint
- nilnesserr
- internal/typeparams
- ashanbrown
- forbidigo
- forbidigo
- makezero
- makezero
- aymanbagabas/go-osc52/v2
- bkielbasa/cyclop
- pkg/analyzer
- blizzy78/varnamelen
- bombsimon/wsl/v4
- breml
- bidichk
- pkg/bidichk
- errchkjson
- butuzov
- ireturn
- analyzer
- internal
- config
- types
- mirror
- internal/checker
- catenacyber/perfsprint
- analyzer
- ccojocar/zxcvbn-go
- adjacency
- data
- entropy
- frequency
- matching
- match
- scoring
- utils/math
- charithe/durationcheck
- charmbracelet
- colorprofile
- lipgloss
- x
- ansi
- kitty
- parser
- cellbuf
- term
- chavacava/garif
- ckaznocha/intrange
- curioswitch/go-reassign
- internal/analyzer
- daixiang0/gci
- pkg
- config
- format
- gci
- io
- log
- parse
- section
- specificity
- utils
- dave/dst
- decorator
- resolver
- gopackages
- gotypes
- dstutil
- denis-tingaikin/go-header
- dlclark/regexp2
- syntax
- ettle/strcase
- fatih/structtag
- firefart/nonamedreturns
- analyzer
- fzipp/gocyclo
- ghostiam/protogetter
- go-critic/go-critic
- checkers
- internal
- astwalk
- lintutil
- rulesdata
- linter
- go-toolsmith
- astcast
- astcopy
- astequal
- astfmt
- astp
- strparse
- typep
- go-viper/mapstructure/v2
- internal/errors
- go-xmlfmt/xmlfmt
- gobwas/glob
- compiler
- match
- syntax
- ast
- lexer
- util
- runes
- strings
- gofrs/flock
- golangci
- dupl
- job
- lib
- printer
- suffixtree
- syntax
- golang
- go-printf-func-name
- pkg/analyzer
- gofmt/gofmt
- golangci-lint/v2
- cmd/golangci-lint
- internal
- cache
- errorutil
- go
- base
- cacheprog
- cache
- mmap
- quoted
- x
- tools
- analysisflags
- analysisinternal
- diff
- lcs
- pkg
- commands
- internal
- migrate
- fakeloader
- parser
- ptr
- versionone
- versiontwo
- config
- exitcodes
- fsutils
- goanalysis
- load
- pkgerrors
- goformatters
- gci
- internal
- config
- section
- gofmt
- gofumpt
- goimports
- golines
- internal
- goformat
- golinters
- asasalint
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- containedctx
- contextcheck
- copyloopvar
- cyclop
- decorder
- depguard
- dogsled
- dupl
- dupword
- durationcheck
- err113
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exhaustruct
- exptostd
- fatcontext
- forbidigo
- forcetypeassert
- funcorder
- funlen
- gci
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoglobals
- gochecknoinits
- gochecksumtype
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
- gofmt
- gofumpt
- goheader
- goimports
- golines
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- gosmopolitan
- govet
- grouper
- iface
- importas
- inamedparam
- ineffassign
- interfacebloat
- internal
- intrange
- ireturn
- lll
- loggercheck
- maintidx
- makezero
- mirror
- misspell
- mnd
- musttag
- nakedret
- nestif
- nilerr
- nilnesserr
- nilnil
- nlreturn
- noctx
- nolintlint
- internal
- nonamedreturns
- nosprintfhostport
- paralleltest
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- recvcheck
- revive
- rowserrcheck
- sloglint
- spancheck
- sqlclosecheck
- staticcheck
- tagalign
- tagliatelle
- testableexamples
- testifylint
- testpackage
- thelper
- tparallel
- unconvert
- unparam
- unused
- usestdlibvars
- usetesting
- varnamelen
- wastedassign
- whitespace
- wrapcheck
- wsl
- zerologlint
- goutil
- lint
- lintersdb
- linter
- logutils
- printers
- report
- result
- processors
- timeutils
- golines
- misspell
- plugin-module-register
- register
- revgrep
- unconvert
- gordonklaus/ineffassign
- pkg/ineffassign
- gostaticanalysis
- analysisutil
- comment
- passes/commentmap
- forcetypeassert
- nilerr
- hashicorp
- go-immutable-radix/v2
- golang-lru/v2
- internal
- simplelru
- hcl
- hcl
- ast
- parser
- printer
- scanner
- strconv
- token
- json
- parser
- scanner
- token
- hexops/gotextdiff
- myers
- span
- jgautheron/goconst
- jingyugao/rowserrcheck
- passes/rowserr
- jjti/go-spancheck
- julz/importas
- karamaru-alpha/copyloopvar
- kisielk/errcheck
- errcheck
- kkHAIKE/contextcheck
- kulti/thelper
- pkg/analyzer
- kunwardeep/paralleltest
- pkg/paralleltest
- lasiar/canonicalheader
- ldez
- exptostd
- gomoddirectives
- grignotin
- goenv
- gomod
- tagliatelle
- usetesting
- leonklingele/grouper
- pkg/analyzer
- consts
- globals
- imports
- types
- vars
- lucasb-eyer/go-colorful
- macabu/inamedparam
- magiconair/properties
- manuelarte/funcorder
- analyzer
- internal
- astutils
- diag
- features
- fileprocessor
- models
- maratori
- testableexamples
- pkg/testableexamples
- testpackage
- pkg/testpackage
- matoous/godox
- mattn/go-runewidth
- mgechev/revive
- config
- formatter
- internal
- astutils
- ifelse
- typeparams
- lint
- rule
- moricho/tparallel
- pkg
- ssafunc
- ssainstr
- muesli/termenv
- nakabonne/nestif
- nishanths
- exhaustive
- predeclared
- passes/predeclared
- nunnatsa/ginkgolinter
- internal
- expression
- actual
- matcher
- value
- formatter
- ginkgohandler
- ginkgoinfo
- gomegahandler
- gomegainfo
- interfaces
- intervals
- reports
- reverseassertion
- rules
- linter
- types
- version
- olekukonko/tablewriter
- pelletier/go-toml
- v2
- internal
- characters
- danger
- tracker
- unstable
- polyfloyd/go-errorlint
- errorlint
- quasilyte
- go-ruleguard
- dsl
- types
- internal
- goenv
- golist
- xsrcimporter
- xtypes
- ruleguard
- goutil
- irconv
- ir
- profiling
- quasigo
- stdlib
- qfmt
- qstrconv
- qstrings
- textmatch
- typematch
- gogrep
- internal/stdinfo
- nodetag
- regex/syntax
- stdinfo
- raeperd/recvcheck
- rivo/uniseg
- rogpeppe/go-internal
- diff
- internal/syscall/windows
- sysdll
- lockedfile
- internal/filelock
- robustio
- ryancurrah/gomodguard
- ryanrolds/sqlclosecheck
- pkg/analyzer
- sanposhiho/wastedassign/v2
- santhosh-tekuri/jsonschema/v6
- kind
- metaschemas
- draft-04
- draft-06
- draft-07
- draft
- 2019-09
- meta
- 2020-12
- meta
- sashamelentyev
- interfacebloat
- pkg/analyzer
- usestdlibvars
- pkg/analyzer
- internal/mapping
- securego/gosec/v2
- analyzers
- cwe
- issue
- rules
- sivchari/containedctx
- sonatard/noctx
- ngfunc
- reqwithoutctx
- sourcegraph/go-diff
- diff
- spf13
- cast
- jwalterweatherman
- viper
- internal/encoding
- dotenv
- hcl
- ini
- javaproperties
- json
- toml
- yaml
- ssgreg/nlreturn/v2
- pkg/nlreturn
- stbenjam/no-sprintf-host-port
- pkg/analyzer
- subosito/gotenv
- tdakkota/asciicheck
- tetafro/godot
- timakin/bodyclose
- passes/bodyclose
- timonwong/loggercheck
- internal
- checkers
- printf
- rules
- sets
- stringutil
- tomarrell/wrapcheck/v2
- wrapcheck
- tommy-muehle/go-mnd/v2
- checks
- config
- ultraware
- funlen
- whitespace
- uudashr
- gocognit
- iface
- identical
- internal/directive
- opaque
- unused
- xen0n/gosmopolitan
- xo/terminfo
- yagipy/maintidx
- pkg
- cyc
- halstvol
- yeya24/promlinter
- ykadowak/zerologlint
- gitlab.com/bosi/decorder
- go-simpler.org
- musttag
- sloglint
- go.augendre.info/fatcontext
- pkg/analyzer
- go.uber.org/automaxprocs
- internal
- cgroups
- runtime
- maxprocs
- golang.org/x
- exp/typeparams
- mod/sumdb/dirhash
- text/width
- tools
- go
- analysis
- passes
- appends
- asmdecl
- assign
- atomicalign
- atomic
- bools
- buildssa
- buildtag
- cgocall
- composite
- copylock
- ctrlflow
- deepequalerrors
- defers
- directive
- errorsas
- fieldalignment
- findcall
- framepointer
- httpmux
- httpresponse
- ifaceassert
- inspect
- loopclosure
- lostcancel
- nilfunc
- nilness
- pkgfact
- printf
- reflectvaluecompare
- shadow
- shift
- sigchanyzer
- slog
- sortslice
- stdmethods
- stdversion
- stringintconv
- structtag
- testinggoroutine
- tests
- timeformat
- unmarshal
- unreachable
- unsafeptr
- unusedresult
- unusedwrite
- waitgroup
- buildutil
- cfg
- internal/cgo
- loader
- ssa
- ssautil
- internal
- analysis
- analyzerutil
- typeindex
- astutil
- fmtstr
- moreiters
- packagepath
- refactor
- typesinternal/typeindex
- refactor/satisfy
- gopkg.in/ini.v1
- honnef.co/go/tools
- analysis
- callcheck
- code
- edit
- facts
- deprecated
- directives
- generated
- nilness
- purity
- tokenfile
- typedness
- lint
- report
- config
- go
- ast/astutil
- ir
- irutil
- types/typeutil
- internal
- passes/buildir
- knowledge
- pattern
- printf
- quickfix
- qf1001
- qf1002
- qf1003
- qf1004
- qf1005
- qf1006
- qf1007
- qf1008
- qf1009
- qf1010
- qf1011
- qf1012
- simple
- s1000
- s1001
- s1002
- s1003
- s1004
- s1005
- s1006
- s1007
- s1008
- s1009
- s1010
- s1011
- s1012
- s1016
- s1017
- s1018
- s1019
- s1020
- s1021
- s1023
- s1024
- s1025
- s1028
- s1029
- s1030
- s1031
- s1032
- s1033
- s1034
- s1035
- s1036
- s1037
- s1038
- s1039
- s1040
- staticcheck
- fakejson
- fakereflect
- fakexml
- sa1000
- sa1001
- sa1002
- sa1003
- sa1004
- sa1005
- sa1006
- sa1007
- sa1008
- sa1010
- sa1011
- sa1012
- sa1013
- sa1014
- sa1015
- sa1016
- sa1017
- sa1018
- sa1019
- sa1020
- sa1021
- sa1023
- sa1024
- sa1025
- sa1026
- sa1027
- sa1028
- sa1029
- sa1030
- sa1031
- sa1032
- sa2000
- sa2001
- sa2002
- sa2003
- sa3000
- sa3001
- sa4000
- sa4001
- sa4003
- sa4004
- sa4005
- sa4006
- sa4008
- sa4009
- sa4010
- sa4011
- sa4012
- sa4013
- sa4014
- sa4015
- sa4016
- sa4017
- sa4018
- sa4019
- sa4020
- sa4021
- sa4022
- sa4023
- sa4024
- sa4025
- sa4026
- sa4027
- sa4028
- sa4029
- sa4030
- sa4031
- sa4032
- sa5000
- sa5001
- sa5002
- sa5003
- sa5004
- sa5005
- sa5007
- sa5008
- sa5009
- sa5010
- sa5011
- sa5012
- sa6000
- sa6001
- sa6002
- sa6003
- sa6005
- sa6006
- sa9001
- sa9002
- sa9003
- sa9004
- sa9005
- sa9006
- sa9007
- sa9008
- sa9009
- stylecheck
- st1000
- st1001
- st1003
- st1005
- st1006
- st1008
- st1011
- st1012
- st1013
- st1015
- st1016
- st1017
- st1018
- st1019
- st1020
- st1021
- st1022
- st1023
- unused
- mvdan.cc
- gofumpt
- format
- internal
- govendor/go
- doc/comment
- format
- printer
- version
- unparam
- check
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 106 deletions
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 186 deletions
This file was deleted.
0 commit comments