diff --git a/.bingo/Variables.mk b/.bingo/Variables.mk index 4b5b0e3ae..2e1391f05 100644 --- a/.bingo/Variables.mk +++ b/.bingo/Variables.mk @@ -41,6 +41,12 @@ $(CRD_REF_DOCS): $(BINGO_DIR)/crd-ref-docs.mod @echo "(re)installing $(GOBIN)/crd-ref-docs-v0.1.0" @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=crd-ref-docs.mod -o=$(GOBIN)/crd-ref-docs-v0.1.0 "github.com/elastic/crd-ref-docs" +GINKGO := $(GOBIN)/ginkgo-v2.22.2 +$(GINKGO): $(BINGO_DIR)/ginkgo.mod + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/ginkgo-v2.22.2" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=ginkgo.mod -o=$(GOBIN)/ginkgo-v2.22.2 "github.com/onsi/ginkgo/v2/ginkgo" + GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.63.4 $(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. diff --git a/.bingo/ginkgo.mod b/.bingo/ginkgo.mod new file mode 100644 index 000000000..9fc718a08 --- /dev/null +++ b/.bingo/ginkgo.mod @@ -0,0 +1,5 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.23.4 + +require github.com/onsi/ginkgo/v2 v2.22.2 // ginkgo diff --git a/.bingo/ginkgo.sum b/.bingo/ginkgo.sum new file mode 100644 index 000000000..bf4e1c138 --- /dev/null +++ b/.bingo/ginkgo.sum @@ -0,0 +1,8 @@ +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= +github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad h1:a6HEuzUHeKH6hwfN/ZoQgRgVIWFJljSWa/zetS2WTvg= +github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= +github.com/onsi/ginkgo/v2 v2.22.2 h1:/3X8Panh8/WwhU/3Ssa6rCKqPLuAkVY2I0RoyDLySlU= +github.com/onsi/ginkgo/v2 v2.22.2/go.mod h1:oeMosUL+8LtarXBHu/c0bx2D/K9zyQ6uX3cTyztHwsk= +golang.org/x/tools v0.28.0 h1:WuB6qZ4RPCQo5aP3WdKZS7i595EdWqWR8vqJTlwTVK8= +golang.org/x/tools v0.28.0/go.mod h1:dcIOrVd3mfQKTgrDVQHqCPMWy6lnhfhtX3hLXYVLfRw= diff --git a/.bingo/variables.env b/.bingo/variables.env index b97764b84..63a3618d0 100644 --- a/.bingo/variables.env +++ b/.bingo/variables.env @@ -16,6 +16,8 @@ CRD_DIFF="${GOBIN}/crd-diff-v0.1.0" CRD_REF_DOCS="${GOBIN}/crd-ref-docs-v0.1.0" +GINKGO="${GOBIN}/ginkgo-v2.22.2" + GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.63.4" GORELEASER="${GOBIN}/goreleaser-v1.26.2" diff --git a/catalogd/.bingo/.gitignore b/catalogd/.bingo/.gitignore new file mode 100644 index 000000000..9efccf683 --- /dev/null +++ b/catalogd/.bingo/.gitignore @@ -0,0 +1,13 @@ + +# Ignore everything +* + +# But not these files: +!.gitignore +!*.mod +!*.sum +!README.md +!Variables.mk +!variables.env + +*tmp.mod diff --git a/catalogd/.bingo/README.md b/catalogd/.bingo/README.md new file mode 100644 index 000000000..7a5c2d4f6 --- /dev/null +++ b/catalogd/.bingo/README.md @@ -0,0 +1,14 @@ +# Project Development Dependencies. + +This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. + +* Run `bingo get` to install all tools having each own module file in this directory. +* Run `bingo get ` to install that have own module file in this directory. +* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. +* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool. +* For go: Import `.bingo/variables.go` to for variable names. +* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. + +## Requirements + +* Go 1.14+ diff --git a/catalogd/.bingo/go.mod b/catalogd/.bingo/go.mod new file mode 100644 index 000000000..610249af0 --- /dev/null +++ b/catalogd/.bingo/go.mod @@ -0,0 +1 @@ +module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file