Skip to content

Commit cca7701

Browse files
committed
feat: separate modfile for tools
1 parent 1bf129a commit cca7701

File tree

6 files changed

+1234
-769
lines changed

6 files changed

+1234
-769
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ race:
1010

1111
cover:
1212
go test ./... -race -coverprofile=coverage.out
13-
go tool cover -html=coverage.out -o coverage.html
14-
go tool cover -func=coverage.out
13+
go tool -modfile=go.tool.mod cover -html=coverage.out -o coverage.html
14+
go tool -modfile=go.tool.mod cover -func=coverage.out
1515

1616
fumpt:
1717
@echo "Fumpting go"
18-
@go tool gofumpt -l -w .
18+
@go tool -modfile=go.tool.mod gofumpt -l -w .
1919

2020
lint: fumpt
2121
@echo "Linting go"
22-
@go tool golangci-lint run
22+
@go tool -modfile=go.tool.mod golangci-lint run
2323

2424
bench:
2525
@go test -bench=.

go.mod

Lines changed: 2 additions & 194 deletions
Original file line numberDiff line numberDiff line change
@@ -9,202 +9,10 @@ require (
99
)
1010

1111
require (
12-
4d63.com/gocheckcompilerdirectives v1.3.0 // indirect
13-
4d63.com/gochecknoglobals v0.2.2 // indirect
14-
github.com/4meepo/tagalign v1.4.2 // indirect
15-
github.com/Abirdcfly/dupword v0.1.4 // indirect
16-
github.com/Antonboom/errname v1.1.0 // indirect
17-
github.com/Antonboom/nilnil v1.1.0 // indirect
18-
github.com/Antonboom/testifylint v1.6.1 // indirect
19-
github.com/BurntSushi/toml v1.5.0 // indirect
20-
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect
21-
github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.1 // indirect
22-
github.com/Masterminds/semver/v3 v3.3.1 // indirect
23-
github.com/OpenPeeDeeP/depguard/v2 v2.2.1 // indirect
24-
github.com/alecthomas/chroma/v2 v2.18.0 // indirect
25-
github.com/alecthomas/go-check-sumtype v0.3.1 // indirect
26-
github.com/alexkohler/nakedret/v2 v2.0.6 // indirect
27-
github.com/alexkohler/prealloc v1.0.0 // indirect
28-
github.com/alingse/asasalint v0.0.11 // indirect
29-
github.com/alingse/nilnesserr v0.2.0 // indirect
30-
github.com/ashanbrown/forbidigo v1.6.0 // indirect
31-
github.com/ashanbrown/makezero v1.2.0 // indirect
32-
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
33-
github.com/beorn7/perks v1.0.1 // indirect
34-
github.com/bkielbasa/cyclop v1.2.3 // indirect
35-
github.com/blizzy78/varnamelen v0.8.0 // indirect
36-
github.com/bombsimon/wsl/v4 v4.7.0 // indirect
37-
github.com/breml/bidichk v0.3.3 // indirect
38-
github.com/breml/errchkjson v0.4.1 // indirect
39-
github.com/butuzov/ireturn v0.4.0 // indirect
40-
github.com/butuzov/mirror v1.3.0 // indirect
41-
github.com/catenacyber/perfsprint v0.9.1 // indirect
42-
github.com/ccojocar/zxcvbn-go v1.0.4 // indirect
43-
github.com/cespare/xxhash/v2 v2.3.0 // indirect
44-
github.com/charithe/durationcheck v0.0.10 // indirect
45-
github.com/charmbracelet/colorprofile v0.3.1 // indirect
46-
github.com/charmbracelet/lipgloss v1.1.0 // indirect
47-
github.com/charmbracelet/x/ansi v0.9.2 // indirect
48-
github.com/charmbracelet/x/cellbuf v0.0.13 // indirect
49-
github.com/charmbracelet/x/term v0.2.1 // indirect
50-
github.com/chavacava/garif v0.1.0 // indirect
51-
github.com/ckaznocha/intrange v0.3.1 // indirect
52-
github.com/curioswitch/go-reassign v0.3.0 // indirect
53-
github.com/daixiang0/gci v0.13.6 // indirect
54-
github.com/dave/dst v0.27.3 // indirect
5512
github.com/davecgh/go-spew v1.1.1 // indirect
56-
github.com/denis-tingaikin/go-header v0.5.0 // indirect
57-
github.com/dlclark/regexp2 v1.11.5 // indirect
58-
github.com/ettle/strcase v0.2.0 // indirect
59-
github.com/fatih/color v1.18.0 // indirect
60-
github.com/fatih/structtag v1.2.0 // indirect
61-
github.com/firefart/nonamedreturns v1.0.6 // indirect
62-
github.com/fsnotify/fsnotify v1.9.0 // indirect
63-
github.com/fzipp/gocyclo v0.6.0 // indirect
64-
github.com/ghostiam/protogetter v0.3.15 // indirect
65-
github.com/go-critic/go-critic v0.13.0 // indirect
66-
github.com/go-toolsmith/astcast v1.1.0 // indirect
67-
github.com/go-toolsmith/astcopy v1.1.0 // indirect
68-
github.com/go-toolsmith/astequal v1.2.0 // indirect
69-
github.com/go-toolsmith/astfmt v1.1.0 // indirect
70-
github.com/go-toolsmith/astp v1.1.0 // indirect
71-
github.com/go-toolsmith/strparse v1.1.0 // indirect
72-
github.com/go-toolsmith/typep v1.1.0 // indirect
73-
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
74-
github.com/go-xmlfmt/xmlfmt v1.1.3 // indirect
75-
github.com/gobwas/glob v0.2.3 // indirect
76-
github.com/gofrs/flock v0.12.1 // indirect
77-
github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32 // indirect
78-
github.com/golangci/go-printf-func-name v0.1.0 // indirect
79-
github.com/golangci/gofmt v0.0.0-20250413222143-f2e10e00591b // indirect
80-
github.com/golangci/golangci-lint/v2 v2.1.6 // indirect
81-
github.com/golangci/golines v0.0.0-20250217232252-b35a6149b587 // indirect
82-
github.com/golangci/misspell v0.7.0 // indirect
83-
github.com/golangci/plugin-module-register v0.1.1 // indirect
84-
github.com/golangci/revgrep v0.8.0 // indirect
85-
github.com/golangci/unconvert v0.0.0-20250410112200-a129a6e6413e // indirect
86-
github.com/google/go-cmp v0.7.0 // indirect
87-
github.com/gordonklaus/ineffassign v0.1.0 // indirect
88-
github.com/gostaticanalysis/analysisutil v0.7.1 // indirect
89-
github.com/gostaticanalysis/comment v1.5.0 // indirect
90-
github.com/gostaticanalysis/forcetypeassert v0.2.0 // indirect
91-
github.com/gostaticanalysis/nilerr v0.1.1 // indirect
92-
github.com/hashicorp/go-immutable-radix/v2 v2.1.0 // indirect
93-
github.com/hashicorp/go-version v1.7.0 // indirect
94-
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
95-
github.com/hexops/gotextdiff v1.0.3 // indirect
96-
github.com/inconshreveable/mousetrap v1.1.0 // indirect
97-
github.com/jgautheron/goconst v1.8.1 // indirect
98-
github.com/jingyugao/rowserrcheck v1.1.1 // indirect
99-
github.com/jjti/go-spancheck v0.6.5 // indirect
100-
github.com/julz/importas v0.2.0 // indirect
101-
github.com/karamaru-alpha/copyloopvar v1.2.1 // indirect
102-
github.com/kisielk/errcheck v1.9.0 // indirect
103-
github.com/kkHAIKE/contextcheck v1.1.6 // indirect
104-
github.com/kulti/thelper v0.6.3 // indirect
105-
github.com/kunwardeep/paralleltest v1.0.14 // indirect
106-
github.com/lasiar/canonicalheader v1.1.2 // indirect
107-
github.com/ldez/exptostd v0.4.3 // indirect
108-
github.com/ldez/gomoddirectives v0.6.1 // indirect
109-
github.com/ldez/grignotin v0.9.0 // indirect
110-
github.com/ldez/tagliatelle v0.7.1 // indirect
111-
github.com/ldez/usetesting v0.4.3 // indirect
112-
github.com/leonklingele/grouper v1.1.2 // indirect
113-
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
114-
github.com/macabu/inamedparam v0.2.0 // indirect
115-
github.com/manuelarte/funcorder v0.5.0 // indirect
116-
github.com/maratori/testableexamples v1.0.0 // indirect
117-
github.com/maratori/testpackage v1.1.1 // indirect
118-
github.com/matoous/godox v1.1.0 // indirect
119-
github.com/mattn/go-colorable v0.1.14 // indirect
120-
github.com/mattn/go-isatty v0.0.20 // indirect
121-
github.com/mattn/go-runewidth v0.0.16 // indirect
122-
github.com/mgechev/revive v1.9.0 // indirect
123-
github.com/mitchellh/go-homedir v1.1.0 // indirect
124-
github.com/moricho/tparallel v0.3.2 // indirect
125-
github.com/muesli/termenv v0.16.0 // indirect
126-
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
127-
github.com/nakabonne/nestif v0.3.1 // indirect
128-
github.com/nishanths/exhaustive v0.12.0 // indirect
129-
github.com/nishanths/predeclared v0.2.2 // indirect
130-
github.com/nunnatsa/ginkgolinter v0.19.1 // indirect
131-
github.com/olekukonko/errors v1.1.0 // indirect
132-
github.com/olekukonko/ll v0.0.8 // indirect
133-
github.com/olekukonko/tablewriter v1.0.6 // indirect
134-
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
13+
github.com/kr/pretty v0.3.1 // indirect
13514
github.com/pmezard/go-difflib v1.0.0 // indirect
136-
github.com/polyfloyd/go-errorlint v1.8.0 // indirect
137-
github.com/prometheus/client_golang v1.22.0 // indirect
138-
github.com/prometheus/client_model v0.6.2 // indirect
139-
github.com/prometheus/common v0.64.0 // indirect
140-
github.com/prometheus/procfs v0.16.1 // indirect
141-
github.com/quasilyte/go-ruleguard v0.4.4 // indirect
142-
github.com/quasilyte/go-ruleguard/dsl v0.3.22 // indirect
143-
github.com/quasilyte/gogrep v0.5.0 // indirect
144-
github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect
145-
github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
146-
github.com/raeperd/recvcheck v0.2.0 // indirect
147-
github.com/rivo/uniseg v0.4.7 // indirect
14815
github.com/rogpeppe/go-internal v1.14.1 // indirect
149-
github.com/ryancurrah/gomodguard v1.4.1 // indirect
150-
github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect
151-
github.com/sagikazarmark/locafero v0.9.0 // indirect
152-
github.com/sanposhiho/wastedassign/v2 v2.1.0 // indirect
153-
github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 // indirect
154-
github.com/sashamelentyev/interfacebloat v1.1.0 // indirect
155-
github.com/sashamelentyev/usestdlibvars v1.28.0 // indirect
156-
github.com/securego/gosec/v2 v2.22.4 // indirect
157-
github.com/sirupsen/logrus v1.9.3 // indirect
158-
github.com/sivchari/containedctx v1.0.3 // indirect
159-
github.com/sonatard/noctx v0.3.3 // indirect
160-
github.com/sourcegraph/conc v0.3.0 // indirect
161-
github.com/sourcegraph/go-diff v0.7.0 // indirect
162-
github.com/spf13/afero v1.14.0 // indirect
163-
github.com/spf13/cast v1.8.0 // indirect
164-
github.com/spf13/cobra v1.9.1 // indirect
165-
github.com/spf13/pflag v1.0.6 // indirect
166-
github.com/spf13/viper v1.20.1 // indirect
167-
github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect
168-
github.com/stbenjam/no-sprintf-host-port v0.2.0 // indirect
169-
github.com/stretchr/objx v0.5.2 // indirect
170-
github.com/subosito/gotenv v1.6.0 // indirect
171-
github.com/tdakkota/asciicheck v0.4.1 // indirect
172-
github.com/tetafro/godot v1.5.1 // indirect
173-
github.com/timakin/bodyclose v0.0.0-20241222091800-1db5c5ca4d67 // indirect
174-
github.com/timonwong/loggercheck v0.11.0 // indirect
175-
github.com/tomarrell/wrapcheck/v2 v2.11.0 // indirect
176-
github.com/tommy-muehle/go-mnd/v2 v2.5.1 // indirect
177-
github.com/ultraware/funlen v0.2.0 // indirect
178-
github.com/ultraware/whitespace v0.2.0 // indirect
179-
github.com/uudashr/gocognit v1.2.0 // indirect
180-
github.com/uudashr/iface v1.3.2 // indirect
181-
github.com/xen0n/gosmopolitan v1.3.0 // indirect
182-
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
183-
github.com/yagipy/maintidx v1.0.0 // indirect
184-
github.com/yeya24/promlinter v0.3.0 // indirect
185-
github.com/ykadowak/zerologlint v0.1.5 // indirect
186-
gitlab.com/bosi/decorder v0.4.2 // indirect
187-
go-simpler.org/musttag v0.13.1 // indirect
188-
go-simpler.org/sloglint v0.11.0 // indirect
189-
go.augendre.info/fatcontext v0.8.0 // indirect
190-
go.uber.org/automaxprocs v1.6.0 // indirect
191-
go.uber.org/multierr v1.11.0 // indirect
192-
go.uber.org/zap v1.27.0 // indirect
193-
golang.org/x/exp/typeparams v0.0.0-20250506013437-ce4c2cf36ca6 // indirect
194-
golang.org/x/mod v0.24.0 // indirect
195-
golang.org/x/sync v0.14.0 // indirect
196-
golang.org/x/sys v0.33.0 // indirect
197-
golang.org/x/text v0.25.0 // indirect
198-
golang.org/x/tools v0.33.0 // indirect
199-
google.golang.org/protobuf v1.36.6 // indirect
200-
gopkg.in/yaml.v2 v2.4.0 // indirect
16+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
20117
gopkg.in/yaml.v3 v3.0.1 // indirect
202-
honnef.co/go/tools v0.6.1 // indirect
203-
mvdan.cc/gofumpt v0.8.0 // indirect
204-
mvdan.cc/unparam v0.0.0-20250301125049-0df0534333a4 // indirect
205-
)
206-
207-
tool (
208-
github.com/golangci/golangci-lint/v2/cmd/golangci-lint
209-
mvdan.cc/gofumpt
21018
)

0 commit comments

Comments
 (0)