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 15841c0 commit 99490d8
Show file tree
Hide file tree
Showing 7 changed files with 1,826 additions and 1,225 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"
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.PHONY: deps
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 @@ -29,11 +31,13 @@ COVFILES := $(shell mktemp -d)
GOLANGCILINT_BIN := $(GOBIN)/golangci-lint
$(GOLANGCILINT_BIN): deps
@echo "+ $@"
cd tool-imports; \
GOBIN=$(GOBIN) go install github.com/golangci/golangci-lint/cmd/golangci-lint

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

###########
Expand Down
315 changes: 5 additions & 310 deletions go.mod

Large diffs are not rendered by default.

924 changes: 12 additions & 912 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 99490d8

Please sign in to comment.