+9
−1
Loading
Stanford GitLab is not approved for High Risk Data and Protected Health Information (PHI). For more information, see FAQ.
The bare `export` exports every make variable, so TF_CLI_CONFIG_FILE
leaked into Terraform's environment on normal online runs. Terraform then
tried to open .tf_build/.terraformrc -- a file only written when
TF_OFFLINE is set (see tf-init) -- and printed a spurious "Unable to open
CLI configuration file" warning.
The variable must stay *defined* because the tf-init recipe references it
in a redirect (`printf ... > ${TF_CLI_CONFIG_FILE}`); an empty value makes
bash fail with "syntax error near unexpected token ';'" since it parses the
whole if/then/fi block before the guard runs. So define it unconditionally,
export it only in offline mode, and unexport it otherwise to override the
blanket export.
Changelog: fixed
Co-Authored-By:
Claude Opus 4.8 <noreply@anthropic.com>