Skip to content

Commit

Permalink
chore: move tools to a separated module
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Janiszewski <[email protected]>
  • Loading branch information
janisz committed Jul 18, 2024
1 parent 2d94898 commit c753769
Show file tree
Hide file tree
Showing 7 changed files with 1,812 additions and 1,191 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ updates:
k8s.io:
patterns:
- "k8s.io/*"
- package-ecosystem: 'gomod'
directory: 'tools-import'
schedule:
interval: 'weekly'
day: 'wednesday'
open-pull-requests-limit: 3
reviewers:
- "janisz"
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
none:


deps: go.mod go.sum
deps: go.mod go.sum tool-imports/go.sum tool-imports/go.mod
@touch deps

%.sum: %.mod
@echo "+ $@"
@go mod tidy
ifdef CI
Expand Down Expand Up @@ -39,11 +42,13 @@ COVFILES := $(shell mktemp -d)
GOLANGCILINT_BIN := $(GOBIN)/golangci-lint
$(GOLANGCILINT_BIN): deps
@echo "+ $@"
cd tool-imports; \
go install github.com/golangci/golangci-lint/cmd/golangci-lint

GORELEASER_BIN := $(GOBIN)/goreleaser
$(GORELEASER_BIN): deps
@echo "+ $@"
cd tool-imports; \
go install github.com/goreleaser/goreleaser

###########
Expand Down
306 changes: 3 additions & 303 deletions go.mod

Large diffs are not rendered by default.

886 changes: 0 additions & 886 deletions go.sum

Large diffs are not rendered by default.

443 changes: 443 additions & 0 deletions tool-imports/go.mod

Large diffs are not rendered by default.

1,352 changes: 1,352 additions & 0 deletions tool-imports/go.sum

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion tool-imports/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ package toolimports
import (
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/goreleaser/goreleaser"
_ "k8s.io/cli-runtime/pkg/resource" // This is imported because we want to be able to require it at a certain version, since otherwise Helm breaks.
)

0 comments on commit c753769

Please sign in to comment.