fix: define PWD variable before using it in makefiles/containers.mk

Co-authored-by: aider (ollama_chat/gpt-oss:120b) <aider@aider.chat>
This commit is contained in:
2025-11-30 20:27:36 -06:00
parent d233e8af9e
commit 06e6040066

View File

@@ -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...