@@ -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
@@ -40,13 +43,19 @@ configure: asdf-install check-warn ## Configure this project repo, including ins
4043 poetry run pre-commit install
4144
4245check : # # Check the build environment is setup correctly
46+ @echo " $( shell echo " ASDF ENV: $( DEBUG_PROP_ASDF_ENV) " ) "
47+ @echo " $( shell echo " PATH: $( DEBUG_PROP_BUILD_PATH) " ) "
48+ echo " $( shell which asdf | true) "
49+ echo " $( shell which terraform | true) "
50+ ls -ltr ~ /.asdf/shims
51+ ls -ltr ~ /.asdf/installs/terraform
4352 @./scripts/check-build-environment.sh
4453
4554check-warn :
4655 @SHOULD_WARN_ONLY=true ./scripts/check-build-environment.sh
4756
4857check-deploy : # # check the deploy environment is setup correctly
49- @./scripts/check -deploy-environment.sh
58+ @./scripts/lint -deploy-environment.sh
5059
5160check-deploy-warn :
5261 @SHOULD_WARN_ONLY=true ./scripts/check-deploy-environment.sh
@@ -173,6 +182,7 @@ test-performance-cleanup:
173182 PYTHONPATH=. poetry run python tests/performance/environment.py cleanup $(TF_WORKSPACE_NAME )
174183
175184lint : check-warn # # Lint the project
185+
176186 SKIP="no-commit-to-branch" pre-commit run --all-files
177187
178188clean : # # Remove all generated and temporary files
0 commit comments