bootstrap.py: Only lookup git ref if TLJH_BOOTSTRAP_PIP_SPEC not set

test_bootstrap.py: use `--version main` since there are no tags/releases
This commit is contained in:
Simon Li
2022-11-27 19:03:48 +00:00
parent 6d1deaa19c
commit 7a50cc9436
2 changed files with 15 additions and 8 deletions

View File

@@ -100,7 +100,14 @@ def run_bootstrap_after_preparing_container(
bootstrap_script = get_bootstrap_script_location(container_name, show_progress_page)
exec_flags = ["-i", container_name, "python3", bootstrap_script]
exec_flags = [
"-i",
container_name,
"python3",
bootstrap_script,
"--version",
"main",
]
if show_progress_page:
exec_flags = (
["-e", "TLJH_BOOTSTRAP_DEV=yes", "-e", "TLJH_BOOTSTRAP_PIP_SPEC=/srv/src"]