Skip to content

Commit dee8608

Browse files
committed
add make target for running crd-diff
Signed-off-by: everettraven <[email protected]>
1 parent 32498f1 commit dee8608

File tree

5 files changed

+344
-2
lines changed

5 files changed

+344
-2
lines changed

.bingo/Variables.mk

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.9. DO NOT EDIT.
1+
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.8. DO NOT EDIT.
22
# All tools are designed to be build inside $GOBIN.
33
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
44
GOPATH ?= $(shell go env GOPATH)
@@ -29,6 +29,12 @@ $(CONTROLLER_GEN): $(BINGO_DIR)/controller-gen.mod
2929
@echo "(re)installing $(GOBIN)/controller-gen-v0.16.1"
3030
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=controller-gen.mod -o=$(GOBIN)/controller-gen-v0.16.1 "sigs.k8s.io/controller-tools/cmd/controller-gen"
3131

32+
CRD_DIFF := $(GOBIN)/crd-diff-v0.0.0-20241112183958-25304aa59cdb
33+
$(CRD_DIFF): $(BINGO_DIR)/crd-diff.mod
34+
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
35+
@echo "(re)installing $(GOBIN)/crd-diff-v0.0.0-20241112183958-25304aa59cdb"
36+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=crd-diff.mod -o=$(GOBIN)/crd-diff-v0.0.0-20241112183958-25304aa59cdb "github.com/everettraven/crd-diff"
37+
3238
CRD_REF_DOCS := $(GOBIN)/crd-ref-docs-v0.1.0
3339
$(CRD_REF_DOCS): $(BINGO_DIR)/crd-ref-docs.mod
3440
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.

.bingo/crd-diff.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
2+
3+
go 1.22.5
4+
5+
require github.com/everettraven/crd-diff v0.0.0-20241112183958-25304aa59cdb

0 commit comments

Comments
 (0)