Skip to content

Commit 65fbe7c

Browse files
committed
chore: turn on @dependabot for tools
Signed-off-by: Oleksandr Redko <[email protected]>
1 parent 1381317 commit 65fbe7c

File tree

7 files changed

+2033
-13
lines changed

7 files changed

+2033
-13
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ updates:
1717
schedule:
1818
interval: daily
1919
open-pull-requests-limit: 10
20+
- package-ecosystem: gomod
21+
directory: "/hack/tools"
22+
schedule:
23+
interval: weekly
24+
open-pull-requests-limit: 10

.github/workflows/test.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,19 @@ jobs:
4949
uses: ls-lint/action@02e380fe8733d499cbfc9e22276de5085508a5bd # v2.3.1
5050
- name: Run shellcheck
5151
run: find . -name '*.sh' | xargs shellcheck
52-
- name: Install shfmt
53-
run: go install mvdan.cc/sh/v3/cmd/[email protected]
5452
- name: Run shfmt
55-
run: find . -name '*.sh' | xargs shfmt -s -d
53+
run: find . -name '*.sh' | xargs go tool -modfile=./hack/tools/go.mod shfmt -s -d
5654
- name: Check hyperlinks
5755
uses: docker://dkhamsing/awesome_bot:latest@sha256:a8adaeb3b3bd5745304743e4d8a6d512127646e420544a6d22d9f58a07f35884
5856
with:
5957
args: /github/workspace/README.md --allow-dupe --allow-redirect --request-delay 1 --white-list https://img.shields.io,http://127.0.0.1:8080,https://github.com/lima-vm/lima/releases/download,https://xbarapp.com,https://api.github.com
60-
- name: Install go-licenses
61-
run: go install github.com/google/[email protected]
6258
- name: Check licenses
6359
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
64-
run: go-licenses check --include_tests ./... --allowed_licenses=$(cat ./hack/allowed-licenses.txt)
65-
- name: Install ltag
66-
run: go install github.com/containerd/[email protected]
60+
run: go tool -modfile=./hack/tools/go-licenses.mod go-licenses check --include_tests ./... --allowed_licenses=$(cat ./hack/allowed-licenses.txt)
6761
- name: Check license boilerplates
68-
run: ltag -t ./hack/ltag --check -v
69-
- name: Install protolint
70-
run: go install github.com/yoheimuta/protolint/cmd/[email protected]
62+
run: go tool ltag -t ./hack/ltag --check -v
7163
- name: Check protobuf files
72-
run: protolint .
64+
run: go tool -modfile=./hack/tools/go.mod protolint .
7365

7466
lint-go:
7567
name: "Lint Go"
@@ -92,10 +84,14 @@ jobs:
9284
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
9385
with:
9486
go-version: 1.24.x
87+
- id: golangci-lint-version
88+
working-directory: hack/tools
89+
run: |
90+
echo "GOLANGCI_LINT_VERSION=$(go list -m -f '{{.Version}}' github.com/golangci/golangci-lint/v2)" >> $GITHUB_OUTPUT
9591
- name: Run golangci-lint
9692
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
9793
with:
98-
version: v2.2
94+
version: ${{ steps.golangci-lint-version.outputs.GOLANGCI_LINT_VERSION }}
9995
args: --verbose
10096

10197
security:

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@ github.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y=
207207
github.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0=
208208
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
209209
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
210+
github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ=
211+
github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E=
212+
github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE=
213+
github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs=
214+
github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo=
215+
github.com/otiai10/mint v1.3.2/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc=
210216
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0=
211217
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y=
212218
github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=

hack/tools/go-licenses.mod

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This file is used only for the github.com/google/go-licenses tool.
2+
# It's required because go-licenses v1.6.0 conflicts with golangci-lint v2.2.2,
3+
# since go-licenses depends on github.com/otiai10/[email protected] and golangci-lint depends on v1.14.0.
4+
#
5+
# TODO: Remove this file after upgrading to github.com/google/go-licenses/v2.
6+
7+
module tools-go-licenses
8+
9+
go 1.24.0
10+
11+
tool github.com/google/go-licenses
12+
13+
require (
14+
github.com/emirpasic/gods v1.12.0 // indirect
15+
github.com/go-logr/logr v1.2.0 // indirect
16+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
17+
github.com/google/go-licenses v1.6.0 // indirect
18+
github.com/google/licenseclassifier v0.0.0-20210722185704-3043a050f148 // indirect
19+
github.com/inconshreveable/mousetrap v1.0.1 // indirect
20+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
21+
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect
22+
github.com/mitchellh/go-homedir v1.1.0 // indirect
23+
github.com/otiai10/copy v1.6.0 // indirect
24+
github.com/sergi/go-diff v1.2.0 // indirect
25+
github.com/spf13/cobra v1.6.0 // indirect
26+
github.com/spf13/pflag v1.0.5 // indirect
27+
github.com/src-d/gcfg v1.4.0 // indirect
28+
github.com/xanzy/ssh-agent v0.2.1 // indirect
29+
go.opencensus.io v0.23.0 // indirect
30+
golang.org/x/crypto v0.1.0 // indirect
31+
golang.org/x/mod v0.7.0 // indirect
32+
golang.org/x/net v0.5.0 // indirect
33+
golang.org/x/sys v0.4.0 // indirect
34+
golang.org/x/text v0.6.0 // indirect
35+
golang.org/x/tools v0.5.0 // indirect
36+
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
37+
gopkg.in/src-d/go-git.v4 v4.13.1 // indirect
38+
gopkg.in/warnings.v0 v0.1.2 // indirect
39+
k8s.io/klog/v2 v2.80.1 // indirect
40+
)

0 commit comments

Comments
 (0)