Skip to content

Commit 767345b

Browse files
committed
peeve: run terraform init
1 parent 56e98f0 commit 767345b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/develop.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ fatal() {
214214
echo "Initializing docker template..."
215215
temp_template_dir="$(mktemp -d)"
216216
"${CODER_DEV_SHIM}" templates init --id "${template_name}" "${temp_template_dir}"
217+
# Run terraform init so we get a terraform.lock.hcl
218+
pushd "${temp_template_dir}" && terraform init && popd
217219

218220
DOCKER_HOST="$(docker context inspect --format '{{ .Endpoints.docker.Host }}')"
219221
printf 'docker_arch: "%s"\ndocker_host: "%s"\n' "${GOARCH}" "${DOCKER_HOST}" >"${temp_template_dir}/params.yaml"

0 commit comments

Comments
 (0)