Open baguasquirrel opened 2 years ago
I just found and fixed the line in my .bashrc
that caused the kustomize
error. Still not working but I've eliminated one possible cause of the problems.
Here's the output when I run tfenv-version-name
:
% /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name 15:15
[DEBUG] Sourcing helpers from /usr/local/Cellar/tfenv/2.2.2/lib/helpers.sh
++ [helpers.sh:35] source /usr/local/Cellar/tfenv/2.2.2/lib/bashlog.sh
+++ [bashlog.sh:3] set -uo pipefail
+++ [bashlog.sh:14] export -f _log_exception
+++ [bashlog.sh:161] export -f log
+++ [bashlog.sh:163] declare prev_cmd=null
+++ [bashlog.sh:164] declare this_cmd=null
+++ [bashlog.sh:165] trap 'prev_cmd=$this_cmd; this_cmd=$BASH_COMMAND' DEBUG
++++ [bashlog.sh:166] prev_cmd=null
++++ [bashlog.sh:166] this_cmd='log debug '\''DEBUG trap set'\'''
+++ [bashlog.sh:166] log debug 'DEBUG trap set'
+++ [bashlog.sh:17] local 'date_format=+%F %T'
++++ [bashlog.sh:18] date '+%F %T'
+++ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++++ [bashlog.sh:19] date +%s
+++ [bashlog.sh:19] local date_s=1631312139
+++ [bashlog.sh:21] local file=0
++++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+++ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+++ [bashlog.sh:24] local json=0
++++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+++ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+++ [bashlog.sh:27] local syslog=0
++++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+++ [bashlog.sh:28] local tag=tfenv-version-name
+++ [bashlog.sh:29] local facility=local0
+++ [bashlog.sh:30] local pid=8196
+++ [bashlog.sh:32] local level=debug
++++ [bashlog.sh:33] echo debug
++++ [bashlog.sh:33] awk '{print toupper($0)}'
+++ [bashlog.sh:33] local upper=DEBUG
+++ [bashlog.sh:34] local debug_level=3
+++ [bashlog.sh:35] local stdout_colours=1
+++ [bashlog.sh:36] local stdout_extra=0
+++ [bashlog.sh:38] local custom_eval_prefix=
+++ [bashlog.sh:40] shift 1
+++ [bashlog.sh:42] local 'line=DEBUG trap set'
+++ [bashlog.sh:58] local severities_DEBUG=7
+++ [bashlog.sh:59] local severities_INFO=6
+++ [bashlog.sh:60] local severities_NOTICE=5
+++ [bashlog.sh:61] local severities_WARN=4
+++ [bashlog.sh:62] local severities_ERROR=3
+++ [bashlog.sh:63] local severities_CRIT=2
+++ [bashlog.sh:64] local severities_ALERT=1
+++ [bashlog.sh:65] local severities_EMERG=0
+++ [bashlog.sh:67] local severity_var=severities_DEBUG
+++ [bashlog.sh:68] local severity=7
+++ [bashlog.sh:70] '[' 3 -gt 0 ']'
+++ [bashlog.sh:72] '[' 0 -eq 1 ']'
+++ [bashlog.sh:83] '[' 0 -eq 1 ']'
+++ [bashlog.sh:94] '[' 0 -eq 1 ']'
+++ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+++ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+++ [bashlog.sh:104] local colours_NOTICE=
+++ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+++ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+++ [bashlog.sh:107] local colours_CRIT=
+++ [bashlog.sh:108] local colours_ALERT=
+++ [bashlog.sh:109] local colours_EMERG=
+++ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+++ [bashlog.sh:112] local 'norm=\033[0m'
+++ [bashlog.sh:113] local colour_var=colours_DEBUG
+++ [bashlog.sh:114] local 'colour=\033[34m'
+++ [bashlog.sh:116] local std_line
+++ [bashlog.sh:117] '[' 3 -le 1 ']'
+++ [bashlog.sh:119] '[' 3 -ge 2 ']'
+++ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: DEBUG trap set'
+++ [bashlog.sh:123] '[' 0 -eq 1 ']'
+++ [bashlog.sh:127] '[' -n '' ']'
+++ [bashlog.sh:131] '[' 1 -eq 1 ']'
+++ [bashlog.sh:132] std_line='\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: DEBUG trap set\033[0m'
+++ [bashlog.sh:136] case "${level}" in
+++ [bashlog.sh:141] '[' 3 -gt 0 ']'
+++ [bashlog.sh:144] echo -e '\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: DEBUG trap set\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: DEBUG trap set
+++ [helpers.sh:111] prev_cmd='log debug '\''DEBUG trap set'\'''
+++ [helpers.sh:111] this_cmd='export -f curlw'
++ [helpers.sh:111] export -f curlw
+++ [helpers.sh:117] prev_cmd='export -f curlw'
+++ [helpers.sh:117] this_cmd='export -f check_active_version'
++ [helpers.sh:117] export -f check_active_version
+++ [helpers.sh:124] prev_cmd='export -f check_active_version'
+++ [helpers.sh:124] this_cmd='export -f check_installed_version'
++ [helpers.sh:124] export -f check_installed_version
+++ [helpers.sh:131] prev_cmd='export -f check_installed_version'
+++ [helpers.sh:131] this_cmd='export -f check_default_version'
++ [helpers.sh:131] export -f check_default_version
+++ [helpers.sh:143] prev_cmd='export -f check_default_version'
+++ [helpers.sh:143] this_cmd='export -f cleanup'
++ [helpers.sh:143] export -f cleanup
+++ [helpers.sh:149] prev_cmd='export -f cleanup'
+++ [helpers.sh:149] this_cmd='export -f error_and_proceed'
++ [helpers.sh:149] export -f error_and_proceed
+++ [helpers.sh:151] prev_cmd='export -f error_and_proceed'
+++ [helpers.sh:151] this_cmd='export TFENV_HELPERS=1'
++ [helpers.sh:151] export TFENV_HELPERS=1
++ [helpers.sh:151] TFENV_HELPERS=1
++ [tfenv-version-name:42] prev_cmd='export TFENV_HELPERS=1'
++ [tfenv-version-name:42] this_cmd='log '\''debug'\'' '\''Helpers sourced successfully'\'''
+ [tfenv-version-name:42] log debug 'Helpers sourced successfully'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1631312139
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:28] local tag=tfenv-version-name
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=8196
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=Helpers sourced successfully'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: Helpers sourced successfully'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: Helpers sourced successfully\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: Helpers sourced successfully\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: Helpers sourced successfully
+ [tfenv-version-name:49] for dir in libexec bin
++ [tfenv-version-name:49] prev_cmd='log '\''debug'\'' '\''Helpers sourced successfully'\'''
++ [tfenv-version-name:49] this_cmd='for dir in libexec bin'
+ [tfenv-version-name:50] case ":${PATH}:" in
++ [tfenv-version-name:50] prev_cmd='for dir in libexec bin'
++ [tfenv-version-name:50] this_cmd='case ":${PATH}:" in '
++ [tfenv-version-name:53] prev_cmd='case ":${PATH}:" in '
++ [tfenv-version-name:53] this_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
+ [tfenv-version-name:53] log debug '$PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1631312139
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:28] local tag=tfenv-version-name
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=8196
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=$PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/libexec'\'', prepending and exporting it now'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/libexec'\'', prepending and exporting it now\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/libexec'\'', prepending and exporting it now\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: $PATH does not contain '/usr/local/Cellar/tfenv/2.2.2/libexec', prepending and exporting it now
++ [tfenv-version-name:54] prev_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
++ [tfenv-version-name:54] this_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
+ [tfenv-version-name:54] export 'PATH=/usr/local/Cellar/tfenv/2.2.2/libexec:/Users/achan/.bin:/Users/achan/.krew/bin:/Users/achan/miniconda/condabin:/Users/achan/.local/bin:/Users/achan/Library/Python/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/vfuse/bin:/Users/achan/Library/Application Support/Coursier/bin'
+ [tfenv-version-name:54] PATH='/usr/local/Cellar/tfenv/2.2.2/libexec:/Users/achan/.bin:/Users/achan/.krew/bin:/Users/achan/miniconda/condabin:/Users/achan/.local/bin:/Users/achan/Library/Python/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/vfuse/bin:/Users/achan/Library/Application Support/Coursier/bin'
+ [tfenv-version-name:49] for dir in libexec bin
++ [tfenv-version-name:49] prev_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
++ [tfenv-version-name:49] this_cmd='for dir in libexec bin'
+ [tfenv-version-name:50] case ":${PATH}:" in
++ [tfenv-version-name:50] prev_cmd='for dir in libexec bin'
++ [tfenv-version-name:50] this_cmd='case ":${PATH}:" in '
++ [tfenv-version-name:53] prev_cmd='case ":${PATH}:" in '
++ [tfenv-version-name:53] this_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
+ [tfenv-version-name:53] log debug '$PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/bin'\'', prepending and exporting it now'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1631312139
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:28] local tag=tfenv-version-name
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=8196
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=$PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/bin'\'', prepending and exporting it now'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/bin'\'', prepending and exporting it now'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/bin'\'', prepending and exporting it now\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: $PATH does not contain '\''/usr/local/Cellar/tfenv/2.2.2/bin'\'', prepending and exporting it now\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: $PATH does not contain '/usr/local/Cellar/tfenv/2.2.2/bin', prepending and exporting it now
++ [tfenv-version-name:54] prev_cmd='log '\''debug'\'' "\$PATH does not contain '\''${TFENV_ROOT}/${dir}'\'', prepending and exporting it now"'
++ [tfenv-version-name:54] this_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
+ [tfenv-version-name:54] export 'PATH=/usr/local/Cellar/tfenv/2.2.2/bin:/usr/local/Cellar/tfenv/2.2.2/libexec:/Users/achan/.bin:/Users/achan/.krew/bin:/Users/achan/miniconda/condabin:/Users/achan/.local/bin:/Users/achan/Library/Python/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/vfuse/bin:/Users/achan/Library/Application Support/Coursier/bin'
+ [tfenv-version-name:54] PATH='/usr/local/Cellar/tfenv/2.2.2/bin:/usr/local/Cellar/tfenv/2.2.2/libexec:/Users/achan/.bin:/Users/achan/.krew/bin:/Users/achan/miniconda/condabin:/Users/achan/.local/bin:/Users/achan/Library/Python/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/vfuse/bin:/Users/achan/Library/Application Support/Coursier/bin'
++ [tfenv-version-name:63] prev_cmd='export PATH="${TFENV_ROOT}/${dir}:${PATH}"'
++ [tfenv-version-name:63] this_cmd='[ -d "${TFENV_ROOT}/versions" ]'
+ [tfenv-version-name:63] '[' -d /usr/local/Cellar/tfenv/2.2.2/versions ']'
++ [tfenv-version-name:66] prev_cmd='[ -d "${TFENV_ROOT}/versions" ]'
++ [tfenv-version-name:66] this_cmd='[ -z "${TFENV_TERRAFORM_VERSION:-""}" ]'
+ [tfenv-version-name:66] '[' -z '' ']'
++ [tfenv-version-name:67] prev_cmd='[ -z "${TFENV_TERRAFORM_VERSION:-""}" ]'
++ [tfenv-version-name:67] this_cmd='TFENV_VERSION_FILE="$(tfenv-version-file)"'
++ [tfenv-version-name:67] tfenv-version-file
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-file: TFENV_HELPERS is set, not sourcing helpers again
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-file: $PATH already contains '/usr/local/Cellar/tfenv/2.2.2/libexec', not adding it again
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-file: $PATH already contains '/usr/local/Cellar/tfenv/2.2.2/bin', not adding it again
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-file: Looking for a version file in /Users/achan/src/adrise_infrastructure
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-file: Found at /Users/achan/src/adrise_infrastructure/.terraform-version
+ [tfenv-version-name:67] TFENV_VERSION_FILE=/Users/achan/src/adrise_infrastructure/.terraform-version
++ [tfenv-version-name:68] prev_cmd='TFENV_VERSION_FILE="$(tfenv-version-file)"'
++ [tfenv-version-name:68] this_cmd='log '\''debug'\'' "TFENV_VERSION_FILE retrieved from tfenv-version-file: ${TFENV_VERSION_FILE}"'
+ [tfenv-version-name:68] log debug 'TFENV_VERSION_FILE retrieved from tfenv-version-file: /Users/achan/src/adrise_infrastructure/.terraform-version'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1631312139
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:28] local tag=tfenv-version-name
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=8196
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=TFENV_VERSION_FILE retrieved from tfenv-version-file: /Users/achan/src/adrise_infrastructure/.terraform-version'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION_FILE retrieved from tfenv-version-file: /Users/achan/src/adrise_infrastructure/.terraform-version'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION_FILE retrieved from tfenv-version-file: /Users/achan/src/adrise_infrastructure/.terraform-version\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION_FILE retrieved from tfenv-version-file: /Users/achan/src/adrise_infrastructure/.terraform-version\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION_FILE retrieved from tfenv-version-file: /Users/achan/src/adrise_infrastructure/.terraform-version
++ [tfenv-version-name:71] prev_cmd='log '\''debug'\'' "TFENV_VERSION_FILE retrieved from tfenv-version-file: ${TFENV_VERSION_FILE}"'
++ [tfenv-version-name:71] this_cmd='TFENV_VERSION="$(cat "${TFENV_VERSION_FILE}" || true)"'
++ [tfenv-version-name:71] cat /Users/achan/src/adrise_infrastructure/.terraform-version
+ [tfenv-version-name:71] TFENV_VERSION='latest:^1.[0-9].[0-9]$'
++ [tfenv-version-name:72] prev_cmd='TFENV_VERSION="$(cat "${TFENV_VERSION_FILE}" || true)"'
++ [tfenv-version-name:72] this_cmd='log '\''debug'\'' "TFENV_VERSION specified in TFENV_VERSION_FILE: ${TFENV_VERSION}"'
+ [tfenv-version-name:72] log debug 'TFENV_VERSION specified in TFENV_VERSION_FILE: latest:^1.[0-9].[0-9]$'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1631312139
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:28] local tag=tfenv-version-name
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=8196
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=TFENV_VERSION specified in TFENV_VERSION_FILE: latest:^1.[0-9].[0-9]$'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION specified in TFENV_VERSION_FILE: latest:^1.[0-9].[0-9]$'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION specified in TFENV_VERSION_FILE: latest:^1.[0-9].[0-9]$\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION specified in TFENV_VERSION_FILE: latest:^1.[0-9].[0-9]$\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION specified in TFENV_VERSION_FILE: latest:^1.[0-9].[0-9]$
++ [tfenv-version-name:74] prev_cmd='log '\''debug'\'' "TFENV_VERSION specified in TFENV_VERSION_FILE: ${TFENV_VERSION}"'
++ [tfenv-version-name:74] this_cmd='TFENV_VERSION_SOURCE="${TFENV_VERSION_FILE}"'
+ [tfenv-version-name:74] TFENV_VERSION_SOURCE=/Users/achan/src/adrise_infrastructure/.terraform-version
++ [tfenv-version-name:82] prev_cmd='TFENV_VERSION_SOURCE="${TFENV_VERSION_FILE}"'
++ [tfenv-version-name:82] this_cmd='[[ "${TFENV_VERSION}" =~ ^latest.*$ ]]'
+ [tfenv-version-name:82] [[ latest:^1.[0-9].[0-9]$ =~ ^latest.*$ ]]
++ [tfenv-version-name:83] prev_cmd='[[ "${TFENV_VERSION}" =~ ^latest.*$ ]]'
++ [tfenv-version-name:83] this_cmd='log '\''debug'\'' "TFENV_VERSION uses '\''latest'\'' keyword: ${TFENV_VERSION}"'
+ [tfenv-version-name:83] log debug 'TFENV_VERSION uses '\''latest'\'' keyword: latest:^1.[0-9].[0-9]$'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1631312139
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:28] local tag=tfenv-version-name
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=8196
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=TFENV_VERSION uses '\''latest'\'' keyword: latest:^1.[0-9].[0-9]$'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION uses '\''latest'\'' keyword: latest:^1.[0-9].[0-9]$'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION uses '\''latest'\'' keyword: latest:^1.[0-9].[0-9]$\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION uses '\''latest'\'' keyword: latest:^1.[0-9].[0-9]$\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: TFENV_VERSION uses 'latest' keyword: latest:^1.[0-9].[0-9]$
++ [tfenv-version-name:85] prev_cmd='log '\''debug'\'' "TFENV_VERSION uses '\''latest'\'' keyword: ${TFENV_VERSION}"'
++ [tfenv-version-name:85] this_cmd='[[ "${TFENV_VERSION}" =~ ^latest\:.*$ ]]'
+ [tfenv-version-name:85] [[ latest:^1.[0-9].[0-9]$ =~ ^latest:.*$ ]]
++ [tfenv-version-name:86] prev_cmd='[[ "${TFENV_VERSION}" =~ ^latest\:.*$ ]]'
++ [tfenv-version-name:86] this_cmd='regex="${TFENV_VERSION##*\:}"'
+ [tfenv-version-name:86] regex='^1.[0-9].[0-9]$'
++ [tfenv-version-name:87] prev_cmd='regex="${TFENV_VERSION##*\:}"'
++ [tfenv-version-name:87] this_cmd='log '\''debug'\'' "'\''latest'\'' keyword uses regex: ${regex}"'
+ [tfenv-version-name:87] log debug ''\''latest'\'' keyword uses regex: ^1.[0-9].[0-9]$'
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1631312139
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:28] local tag=tfenv-version-name
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=8196
+ [bashlog.sh:32] local level=debug
++ [bashlog.sh:33] echo debug
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=DEBUG
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line='\''latest'\'' keyword uses regex: ^1.[0-9].[0-9]$'
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_DEBUG
+ [bashlog.sh:68] local severity=7
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_DEBUG
+ [bashlog.sh:114] local 'colour=\033[34m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: '\''latest'\'' keyword uses regex: ^1.[0-9].[0-9]$'
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: '\''latest'\'' keyword uses regex: ^1.[0-9].[0-9]$\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:141] '[' 3 -gt 0 ']'
+ [bashlog.sh:144] echo -e '\033[34m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: '\''latest'\'' keyword uses regex: ^1.[0-9].[0-9]$\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: 'latest' keyword uses regex: ^1.[0-9].[0-9]$
++ [tfenv-version-name:97] prev_cmd='log '\''debug'\'' "'\''latest'\'' keyword uses regex: ${regex}"'
++ [tfenv-version-name:97] this_cmd='version="$(\find "${TFENV_ROOT}/versions" -type d -exec basename {} \; | tail -n +2 | sort -t'\''.'\'' -k 1nr,1 -k 2nr,2 -k 3nr,3 | grep -e "${regex}" | head -n 1)"'
++ [tfenv-version-name:97] find /usr/local/Cellar/tfenv/2.2.2/versions -type d -exec basename '{}' ';'
++ [tfenv-version-name:97] tail -n +2
++ [tfenv-version-name:97] sort -t. -k 1nr,1 -k 2nr,2 -k 3nr,3
++ [tfenv-version-name:97] grep -e '^1.[0-9].[0-9]$'
++ [tfenv-version-name:97] head -n 1
+ [tfenv-version-name:97] version=
++ [tfenv-version-name:99] prev_cmd='version="$(\find "${TFENV_ROOT}/versions" -type d -exec basename {} \; | tail -n +2 | sort -t'\''.'\'' -k 1nr,1 -k 2nr,2 -k 3nr,3 | grep -e "${regex}" | head -n 1)"'
++ [tfenv-version-name:99] this_cmd='[ -n "${version}" ]'
+ [tfenv-version-name:99] '[' -n '' ']'
++ [tfenv-version-name:103] prev_cmd='[ -n "${version}" ]'
++ [tfenv-version-name:103] this_cmd='log '\''error'\'' "No installed versions of terraform matched '\''${TFENV_VERSION}'\''"'
+ [tfenv-version-name:103] log error 'No installed versions of terraform matched '\''latest:^1.[0-9].[0-9]$'\'''
+ [bashlog.sh:17] local 'date_format=+%F %T'
++ [bashlog.sh:18] date '+%F %T'
+ [bashlog.sh:18] local 'date=2021-09-10 15:15:39'
++ [bashlog.sh:19] date +%s
+ [bashlog.sh:19] local date_s=1631312139
+ [bashlog.sh:21] local file=0
++ [bashlog.sh:22] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:22] local file_path=/tmp/tfenv-version-name.log
+ [bashlog.sh:24] local json=0
++ [bashlog.sh:25] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:25] local json_path=/tmp/tfenv-version-name.log.json
+ [bashlog.sh:27] local syslog=0
++ [bashlog.sh:28] basename /usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name
+ [bashlog.sh:28] local tag=tfenv-version-name
+ [bashlog.sh:29] local facility=local0
+ [bashlog.sh:30] local pid=8196
+ [bashlog.sh:32] local level=error
++ [bashlog.sh:33] echo error
++ [bashlog.sh:33] awk '{print toupper($0)}'
+ [bashlog.sh:33] local upper=ERROR
+ [bashlog.sh:34] local debug_level=3
+ [bashlog.sh:35] local stdout_colours=1
+ [bashlog.sh:36] local stdout_extra=0
+ [bashlog.sh:38] local custom_eval_prefix=
+ [bashlog.sh:40] shift 1
+ [bashlog.sh:42] local 'line=No installed versions of terraform matched '\''latest:^1.[0-9].[0-9]$'\'''
+ [bashlog.sh:58] local severities_DEBUG=7
+ [bashlog.sh:59] local severities_INFO=6
+ [bashlog.sh:60] local severities_NOTICE=5
+ [bashlog.sh:61] local severities_WARN=4
+ [bashlog.sh:62] local severities_ERROR=3
+ [bashlog.sh:63] local severities_CRIT=2
+ [bashlog.sh:64] local severities_ALERT=1
+ [bashlog.sh:65] local severities_EMERG=0
+ [bashlog.sh:67] local severity_var=severities_ERROR
+ [bashlog.sh:68] local severity=3
+ [bashlog.sh:70] '[' 3 -gt 0 ']'
+ [bashlog.sh:72] '[' 0 -eq 1 ']'
+ [bashlog.sh:83] '[' 0 -eq 1 ']'
+ [bashlog.sh:94] '[' 0 -eq 1 ']'
+ [bashlog.sh:102] local 'colours_DEBUG=\033[34m'
+ [bashlog.sh:103] local 'colours_INFO=\033[32m'
+ [bashlog.sh:104] local colours_NOTICE=
+ [bashlog.sh:105] local 'colours_WARN=\033[33m'
+ [bashlog.sh:106] local 'colours_ERROR=\033[31m'
+ [bashlog.sh:107] local colours_CRIT=
+ [bashlog.sh:108] local colours_ALERT=
+ [bashlog.sh:109] local colours_EMERG=
+ [bashlog.sh:110] local 'colours_DEFAULT=\033[0m'
+ [bashlog.sh:112] local 'norm=\033[0m'
+ [bashlog.sh:113] local colour_var=colours_ERROR
+ [bashlog.sh:114] local 'colour=\033[31m'
+ [bashlog.sh:116] local std_line
+ [bashlog.sh:117] '[' 3 -le 1 ']'
+ [bashlog.sh:119] '[' 3 -ge 2 ']'
+ [bashlog.sh:120] std_line='/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: No installed versions of terraform matched '\''latest:^1.[0-9].[0-9]$'\'''
+ [bashlog.sh:123] '[' 0 -eq 1 ']'
+ [bashlog.sh:127] '[' -n '' ']'
+ [bashlog.sh:131] '[' 1 -eq 1 ']'
+ [bashlog.sh:132] std_line='\033[31m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: No installed versions of terraform matched '\''latest:^1.[0-9].[0-9]$'\''\033[0m'
+ [bashlog.sh:136] case "${level}" in
+ [bashlog.sh:148] echo -e '\033[31m/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: No installed versions of terraform matched '\''latest:^1.[0-9].[0-9]$'\''\033[0m'
/usr/local/Cellar/tfenv/2.2.2/libexec/tfenv-version-name: No installed versions of terraform matched 'latest:^1.[0-9].[0-9]$'
+ [bashlog.sh:149] '[' 3 -gt 1 ']'
+ [bashlog.sh:150] echo -e 'Here'\''s a shell for debugging the current environment. '\''exit 0'\'' to resume script from here. Non-zero exit code will abort - parent shell will terminate.'
Here's a shell for debugging the current environment. 'exit 0' to resume script from here. Non-zero exit code will abort - parent shell will terminate.
+ [bashlog.sh:151] bash
bash-5.0$
Experiencing same issue.
Got this from the README.md. Helped me get around this:
TFENV_TERRAFORM_VERSION=1.0.1 terraform --version
The error is stating that when you run terraform, with your defined .terraform-version file, there is not version installed that matches the requirements of the version file. If you run tfenv install
first, your should then be able to run terraform --version
and the required version will be used and report its version.
Additionally with TFENV_AUTO_INSTALL=true which is the default, this should now correctly install a matching version if one isnt found:
$ terraform --version
version '1.2.5' is not installed (set by ~/GitHub/tfutils/tfenv/.terraform-version). Installing now as TFENV_AUTO_INSTALL==true
Installing Terraform v1.2.5
Downloading release tarball from https://releases.hashicorp.com/terraform/1.2.5/terraform_1.2.5_linux_amd64.zip
####################################################################################################################################################################################### 100.0%
Downloading SHA hash file from https://releases.hashicorp.com/terraform/1.2.5/terraform_1.2.5_SHA256SUMS
No keybase install found, skipping OpenPGP signature verification
Archive: /tmp/tfenv_download.gkEK4R/terraform_1.2.5_linux_amd64.zip
inflating: ~/GitHub/tfutils/tfenv/versions/1.2.5/terraform
Installation of terraform v1.2.5 successful. To make this your default version, run 'tfenv use 1.2.5'
Terraform v1.2.5
on linux_amd64
Can you confirm if you still have an issue with the latest master?
My
.terraform-version
is set tolatest:^1.[0-9].[0-9]$
.If I just run
terraform --version
, it fails like so:When I set TFENV_DEBUG, like so:
export TFENV_DEBUG=3
, then it drops me into this shell:Can someone tell me what to run at that shell to debug further?
If I just exit from the shell, it actually runs to completion and successfully installs terraform. I do not know where it's getting that
kustomize
or why it's trying to run it. I do havekustomize
installed, but to a different path.