debug missing stack
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 48s
Deploy Test / Run deploy test suite (pull_request) Has been cancelled
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Has been cancelled
Smoke Test / Run basic test suite (pull_request) Has been cancelled
Webapp Test / Run webapp test suite (pull_request) Has been cancelled

This commit is contained in:
Roy Crihfield 2024-03-28 21:03:50 +08:00
parent 26eef04bb8
commit 95894ff88d

View File

@ -245,6 +245,9 @@ def command(ctx, include, exclude, git_ssh, check_only, pull, branches, branches
# In order to be compatible with Python 3.8 we need to use this hack to get the path: # In order to be compatible with Python 3.8 we need to use this hack to get the path:
# See: https://stackoverflow.com/questions/25389095/python-get-path-of-root-project-structure # See: https://stackoverflow.com/questions/25389095/python-get-path-of-root-project-structure
stack_file_path = Path(__file__).absolute().parent.parent.joinpath("data", "stacks", stack, stack_file_name) stack_file_path = Path(__file__).absolute().parent.parent.joinpath("data", "stacks", stack, stack_file_name)
print("__file__", __file__)
print("stack_file_name", stack_file_name)
print("stack_file_path", stack_file_path)
if not stack_file_path.exists(): if not stack_file_path.exists():
error_exit(f"stack {stack} does not exist") error_exit(f"stack {stack} does not exist")
with stack_file_path: with stack_file_path: