Files
Jonathan Stacks 51e627c624 chore(devenv): Move more tools into our nix devenv (#726)
* chore(deps): Use controller-gen from nixpkgs

This also updates the version of controller-gen we are using to v0.19.0 and removes it from needing to be bootstrapped

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* chore(deps): Use helm & unittest plugin from nixpkgs

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* chore(deps): Move setup-envtest into nix

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* chore(actions): Update actions & checkout version

---------

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2025-12-11 17:36:14 +00:00

25 lines
683 B
Makefile

##@ Tools/Dependencies
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
# $1 - target path with name of binary (ideally with version)
# $2 - package url which can be installed
# $3 - specific version of package
define go-install-tool
@[ -f $(1) ] || { \
set -e; \
package=$(2)@$(3) ;\
echo "Downloading $${package}" ;\
GOBIN=$(LOCALBIN) go install $${package} ;\
mv "$$(echo "$(1)" | sed "s/-$(3)$$//")" $(1) ;\
}
endef
.PHONY: preflight
preflight: ## Verifies required things like the go version
scripts/preflight.sh
.PHONY: _helm_setup
_helm_setup: ## Setup helm chart dependencies
$(MAKE) -C $(HELM_CHART_DIR) setup