@@ -16,6 +16,9 @@ APP_ALIAS ?= default
1616HOST ?= $(TF_WORKSPACE_NAME ) .api.record-locator.$(ENV ) .national.nhs.uk
1717ENV_TYPE ?= $(ENV )
1818
19+ DEBUG_PROP_ASDF_ENV := $(shell env | grep ASDF)
20+ DEBUG_PROP_BUILD_PATH := $(shell env | grep PATH)
21+
1922export PATH := $(PATH ) :$(PWD ) /.venv/bin
2023export USE_SHARED_RESOURCES := $(shell poetry run python scripts/are_resources_shared_for_stack.py $(TF_WORKSPACE_NAME ) )
2124
@@ -43,10 +46,19 @@ check: ## Check the build environment is setup correctly
4346 @./scripts/check-build-environment.sh
4447
4548check-warn :
49+ @echo " $( shell echo " ASDF ENV: $( DEBUG_PROP_ASDF_ENV) " ) "
50+ @echo " $( shell echo " PATH: $( DEBUG_PROP_BUILD_PATH) " ) "
51+ echo " $( shell which asdf || true) "
52+ echo " $( shell which terraform || true) "
53+ echo " $( shell asdf which terraform || true) "
54+ echo " $( shell asdf list terraform || true) "
55+ echo " $( shell terraform -version || true) "
56+ ls -ltr ~ /.asdf/shims
57+ ls -ltr ~ /.asdf/installs/terraform
4658 @SHOULD_WARN_ONLY=true ./scripts/check-build-environment.sh
4759
4860check-deploy : # # check the deploy environment is setup correctly
49- @./scripts/check -deploy-environment.sh
61+ @./scripts/lint -deploy-environment.sh
5062
5163check-deploy-warn :
5264 @SHOULD_WARN_ONLY=true ./scripts/check-deploy-environment.sh
@@ -173,6 +185,7 @@ test-performance-cleanup:
173185 PYTHONPATH=. poetry run python tests/performance/environment.py cleanup $(TF_WORKSPACE_NAME )
174186
175187lint : check-warn # # Lint the project
188+
176189 SKIP="no-commit-to-branch" pre-commit run --all-files
177190
178191clean : # # Remove all generated and temporary files
0 commit comments