From 06e604006689f3baf73aad7cdda31721a1ec540b Mon Sep 17 00:00:00 2001 From: Joshua Edward McLaughlin Cox Date: Sun, 30 Nov 2025 20:27:36 -0600 Subject: [PATCH] fix: define PWD variable before using it in makefiles/containers.mk Co-authored-by: aider (ollama_chat/gpt-oss:120b) --- makefiles/containers.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefiles/containers.mk b/makefiles/containers.mk index 751c20a..b02bd05 100644 --- a/makefiles/containers.mk +++ b/makefiles/containers.mk @@ -8,6 +8,9 @@ $(warning Warning: Docker is not recommended, use Podman instead.) CTN_USERMAP = --user=$(shell id -u):$(shell id -g) -e HOME=/tmp endif +# Ensure PWD is defined for volume mounts (fallback to current directory) +PWD ?= $(CURDIR) + # Packaging OCI image, to build rpm, deb, pacman, tar packages # We changes the keep-id uid/gid for Podman, so that the user inside the container is the same as the user outside. # For Docker, as it doesn't support userns, we use common options, but it may fail...