From 960b69c0846252c18ea245a331d8580d1ce21d38 Mon Sep 17 00:00:00 2001 From: Alexander Olzem Date: Fri, 24 Apr 2026 10:18:25 +0200 Subject: [PATCH 1/2] feat: add ocm install workaround --- common.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common.mk b/common.mk index c306894..3f16252 100644 --- a/common.mk +++ b/common.mk @@ -39,6 +39,7 @@ CRD_REF_DOCS ?= $(LOCALGOBIN)/crd-ref-docs GINKGO ?= $(LOCALGOBIN)/ginkgo GOLANGCI_LINT ?= $(LOCALGOBIN)/golangci-lint HELM_DOCS ?= $(LOCALGOBIN)/helm-docs +OCM ?= $(LOCALGOBIN)/ocm OPENAPI_GEN ?= $(LOCALGOBIN)/openapi-gen OPENAPI_GEN ?= $(LOCALGOBIN)/openapi-gen OSV_SCANNER ?= $(LOCALGOBIN)/osv-scanner @@ -110,3 +111,10 @@ $(LOCALGOBIN)/%: $(LOCALGOBIN) $(TOOL_LOCK) version=$$(cut -d@ -f2 <<< $$module); \ test -s $(LOCALGOBIN)/$$toolname && grep -q "$$version" $(LOCALGOBIN)/.$$toolname-version 2>/dev/null || \ (GOBIN=$(LOCALGOBIN) $(GO) install $$module && echo $$version > $(LOCALGOBIN)/.$$toolname-version) + +# ocm cli (sdk v1) cannot be installed with go install because of replace directives in go.mod +$(LOCALGOBIN)/ocm: $(LOCALGOBIN) $(TOOL_LOCK) + module=$$(awk "/^ocm / {print \$$2}" $(TOOL_LOCK)); \ + version=$$(cut -d@ -f2 <<< $$module); \ + test -s $@ && grep -q "$$version" $(LOCALGOBIN)/.ocm-version 2>/dev/null || \ + curl -s https://ocm.software/install.sh | VERSION_OCM=$$version bash -s -- $(LOCALGOBIN) && echo $$version > $(LOCALGOBIN)/.ocm-version From d2e2282d76a43edd2fe36c447127111256e0eeff Mon Sep 17 00:00:00 2001 From: Alexander Olzem Date: Fri, 24 Apr 2026 10:19:08 +0200 Subject: [PATCH 2/2] chore: bump version --- example/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/Makefile b/example/Makefile index 4ab60a5..1e264f1 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,5 +1,5 @@ # Include ODC common make targets -DEV_KIT_VERSION := v1.0.1 +DEV_KIT_VERSION := v1.0.2 -include common.mk common.mk: curl --fail -sSL https://raw.githubusercontent.com/opendefensecloud/dev-kit/$(DEV_KIT_VERSION)/common.mk -o common.mk.download && \