Skip to content

Commit ac7f4e9

Browse files
committed
tools
1 parent 5bba4b8 commit ac7f4e9

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
// ~~Language Server~~ https://github.com/golang/tools/blob/master/gopls/doc/settings.md
4545
"go.useLanguageServer": true,
4646
"gopls": {
47+
"build.standaloneTags": [
48+
"tools"
49+
],
4750
"build.buildFlags": [
4851
//"-mod=vendor",
4952
"-tags=test-e2e,other"

tools/go.mod

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ module github.com/moukoublen/pick/tools
22

33
go 1.24.2
44

5-
tool (
6-
github.com/air-verse/air
7-
github.com/golangci/golangci-lint/v2/cmd/golangci-lint
8-
github.com/itchyny/gojq
9-
github.com/vektra/mockery/v2
10-
golang.org/x/tools/cmd/goimports
11-
honnef.co/go/tools/cmd/staticcheck
12-
mvdan.cc/gofumpt
13-
mvdan.cc/sh/v3/cmd/shfmt
14-
)
15-
165
// tools version goes here.
176
// this go.mod is not used to actually run the tools, only to store the version.
187

8+
require (
9+
github.com/air-verse/air v1.61.7
10+
github.com/golangci/golangci-lint/v2 v2.1.2
11+
github.com/itchyny/gojq v0.12.17
12+
github.com/vektra/mockery/v2 v2.53.3
13+
golang.org/x/tools v0.32.0
14+
honnef.co/go/tools v0.6.1
15+
mvdan.cc/gofumpt v0.8.0
16+
mvdan.cc/sh/v3 v3.11.0
17+
)
18+
1919
require (
2020
4d63.com/gocheckcompilerdirectives v1.3.0 // indirect
2121
4d63.com/gochecknoglobals v0.2.2 // indirect
@@ -31,7 +31,6 @@ require (
3131
github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.1 // indirect
3232
github.com/Masterminds/semver/v3 v3.3.1 // indirect
3333
github.com/OpenPeeDeeP/depguard/v2 v2.2.1 // indirect
34-
github.com/air-verse/air v1.61.7 // indirect
3534
github.com/alecthomas/chroma/v2 v2.16.0 // indirect
3635
github.com/alecthomas/go-check-sumtype v0.3.1 // indirect
3736
github.com/alexkohler/nakedret/v2 v2.0.6 // indirect
@@ -96,7 +95,6 @@ require (
9695
github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32 // indirect
9796
github.com/golangci/go-printf-func-name v0.1.0 // indirect
9897
github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d // indirect
99-
github.com/golangci/golangci-lint/v2 v2.1.2 // indirect
10098
github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95 // indirect
10199
github.com/golangci/misspell v0.6.0 // indirect
102100
github.com/golangci/plugin-module-register v0.1.1 // indirect
@@ -116,7 +114,6 @@ require (
116114
github.com/huandu/xstrings v1.4.0 // indirect
117115
github.com/iancoleman/strcase v0.3.0 // indirect
118116
github.com/inconshreveable/mousetrap v1.1.0 // indirect
119-
github.com/itchyny/gojq v0.12.17 // indirect
120117
github.com/itchyny/timefmt-go v0.1.6 // indirect
121118
github.com/jgautheron/goconst v1.8.1 // indirect
122119
github.com/jingyugao/rowserrcheck v1.1.1 // indirect
@@ -206,7 +203,6 @@ require (
206203
github.com/ultraware/whitespace v0.2.0 // indirect
207204
github.com/uudashr/gocognit v1.2.0 // indirect
208205
github.com/uudashr/iface v1.3.1 // indirect
209-
github.com/vektra/mockery/v2 v2.53.3 // indirect
210206
github.com/xen0n/gosmopolitan v1.3.0 // indirect
211207
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
212208
github.com/yagipy/maintidx v1.0.0 // indirect
@@ -225,13 +221,9 @@ require (
225221
golang.org/x/sys v0.32.0 // indirect
226222
golang.org/x/term v0.29.0 // indirect
227223
golang.org/x/text v0.24.0 // indirect
228-
golang.org/x/tools v0.32.0 // indirect
229224
google.golang.org/protobuf v1.36.6 // indirect
230225
gopkg.in/yaml.v2 v2.4.0 // indirect
231226
gopkg.in/yaml.v3 v3.0.1 // indirect
232-
honnef.co/go/tools v0.6.1 // indirect
233227
mvdan.cc/editorconfig v0.3.0 // indirect
234-
mvdan.cc/gofumpt v0.8.0 // indirect
235-
mvdan.cc/sh/v3 v3.11.0 // indirect
236228
mvdan.cc/unparam v0.0.0-20250301125049-0df0534333a4 // indirect
237229
)

tools/tools.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//go:build tools
2+
3+
package main
4+
5+
import (
6+
_ "github.com/air-verse/air"
7+
_ "github.com/golangci/golangci-lint/v2/cmd/golangci-lint"
8+
_ "github.com/itchyny/gojq/cmd/gojq"
9+
_ "github.com/vektra/mockery/v2"
10+
_ "golang.org/x/tools/cmd/goimports"
11+
_ "honnef.co/go/tools/cmd/staticcheck"
12+
_ "mvdan.cc/gofumpt"
13+
_ "mvdan.cc/sh/v3/cmd/shfmt"
14+
)
15+
16+
func main() {
17+
}

0 commit comments

Comments
 (0)