Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions bin/stack-config
Original file line number Diff line number Diff line change
@@ -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 $@