From bfbdb9302ccc30216fcd8e7801a618cf7b136b19 Mon Sep 17 00:00:00 2001 From: Ian O'Gorman Date: Mon, 27 Apr 2026 15:13:58 -0700 Subject: [PATCH] remove tomlq dep from k8s makefile, replace with awk --- k8s.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/k8s.mk b/k8s.mk index dd47d61..b70e636 100644 --- a/k8s.mk +++ b/k8s.mk @@ -2,12 +2,16 @@ K8S_INPUT_DIR ?= k8s K8S_MANIFESTS_DIR ?= $(BUILD_DIR)/manifests KUSTOMIZE_DIR ?= kustomize -APP_VERSION=$(shell tomlq -r .workspace.package.version Cargo.toml) +APP_VERSION := $(shell awk -F'"' '/^version = / {print $$2; exit}' Cargo.toml) _DEFAULT_BUILD_TARGETS += run $(K8S_MANIFESTS_DIR): mkdir -p $@ +ifndef APP_VERSION +$(error APP_VERSION could not be determined from Cargo.toml) +endif + .PHONY: _k8s _k8s:: | $(K8S_MANIFESTS_DIR) if [ -f "$(K8S_INPUT_DIR)/pyproject.toml" ]; then cd $(K8S_INPUT_DIR) && poetry install; fi