diff --git a/bin/stack-config b/bin/stack-config index 31a700e..7215049 100755 --- a/bin/stack-config +++ b/bin/stack-config @@ -1,6 +1,11 @@ #!/usr/bin/env bash -export UV_PROJECT_ENVIRONMENT=.venv-`uname -m` - +# determine the root directory of the stackinator project STACKINATOR_ROOT=$(dirname `realpath $0`)/.. -uv run --directory $STACKINATOR_ROOT --with . python -m stackinator.main $@ + +# Notes: +# - --project: make `uv run` run in "project" mode, using the specified project directory +# - UV_PROJECT_ENVIRONMENT: specify a custom name for the project virtual environment, based on the architecture (avoiding conflicts between x86_64 and arm64) + +export UV_PROJECT_ENVIRONMENT=.venv-`uname -m` +uv run --project $STACKINATOR_ROOT stack-config $@