From 401080a2d4b5fa7532e6affa474c1246afe8542f Mon Sep 17 00:00:00 2001 From: Reto Gantenbein Date: Sat, 4 Jul 2026 08:05:40 +0200 Subject: [PATCH] Makefile: Generate kodata/pkgproxy.yaml at build time Stop tracking the bundled config in git; copy it from configs/ into kodata/ before the ko image build and remove it afterwards, so the container image config stays in sync with configs/pkgproxy.yaml. --- .gitignore | 1 + Makefile | 3 +++ kodata/pkgproxy.yaml | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) delete mode 120000 kodata/pkgproxy.yaml diff --git a/.gitignore b/.gitignore index 67b455c..1081f0a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /bin/ /cache/ image-ref.out +/kodata/pkgproxy.yaml # local openspec setup package.json diff --git a/Makefile b/Makefile index 258ace4..cd6f0a7 100644 --- a/Makefile +++ b/Makefile @@ -166,6 +166,9 @@ image-build: ## Build container image with ko $(info ***********************************************************) $(info ********** EXECUTING 'image-build' MAKE TARGET ************) $(info ***********************************************************) + trap 'rm -f kodata/pkgproxy.yaml' EXIT; \ + mkdir -p kodata; \ + cp configs/pkgproxy.yaml kodata/pkgproxy.yaml; \ KO_DOCKER_REPO=$${KO_DOCKER_REPO:-ko.local} \ KO_DATA_DATE_EPOCH=$$(git log -1 --format='%ct') \ VERSION=$(VERSION) \ diff --git a/kodata/pkgproxy.yaml b/kodata/pkgproxy.yaml deleted file mode 120000 index 52061bf..0000000 --- a/kodata/pkgproxy.yaml +++ /dev/null @@ -1 +0,0 @@ -../configs/pkgproxy.yaml \ No newline at end of file