From 8bad6ee8e82da7fbb2d27521a29c57e380e2cb7e Mon Sep 17 00:00:00 2001 From: Akos Eros Date: Fri, 26 Sep 2025 09:49:23 +0200 Subject: [PATCH 1/2] fix: mount current directory to podman run This is needed in cases where the repo is not under the home folder (ie WSL) resolves #636 --- scripts/pattern-util.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/pattern-util.sh b/scripts/pattern-util.sh index 77e0ed389..91028df87 100755 --- a/scripts/pattern-util.sh +++ b/scripts/pattern-util.sh @@ -104,6 +104,7 @@ podman run -it --rm --pull=newer \ -e K8S_AUTH_PASSWORD \ -e K8S_AUTH_TOKEN \ ${PKI_HOST_MOUNT_ARGS} \ + -v "$(pwd)":"$(pwd)" \ -v "${HOME}":"${HOME}" \ -v "${HOME}":/pattern-home \ ${PODMAN_ARGS} \ From 7c845373fe7c438ca90a94fde3dd7d7c631de9a4 Mon Sep 17 00:00:00 2001 From: Akos Eros Date: Tue, 30 Sep 2025 19:19:38 +0200 Subject: [PATCH 2/2] fix: use physical option for current directory This is needed for shells where pwd defaults to the logical path resolves #636 --- scripts/pattern-util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pattern-util.sh b/scripts/pattern-util.sh index 91028df87..4b75f4379 100755 --- a/scripts/pattern-util.sh +++ b/scripts/pattern-util.sh @@ -104,11 +104,11 @@ podman run -it --rm --pull=newer \ -e K8S_AUTH_PASSWORD \ -e K8S_AUTH_TOKEN \ ${PKI_HOST_MOUNT_ARGS} \ - -v "$(pwd)":"$(pwd)" \ + -v "$(pwd -P)":"$(pwd -P)" \ -v "${HOME}":"${HOME}" \ -v "${HOME}":/pattern-home \ ${PODMAN_ARGS} \ ${EXTRA_ARGS} \ - -w "$(pwd)" \ + -w "$(pwd -P)" \ "$PATTERN_UTILITY_CONTAINER" \ $@