You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd infrastructure-live/
Reading required terragrunt version .tgswitchrc
2020/06/16 11:21:18
Unable to create new symlink.
Maybe symlink already exist. Try removing existing symlink manually.
Try running "unlink" to remove existing symlink.
If error persist, you may not have the permission to create a symlink at /Users/jim/bin.
Error: symlink /Users/jim/.terragrunt.versions/terragrunt_0.23.8 /Users/jim/bin: file exists
ls -la /Users/jim/bin/
total 0
drwxr-xr-x 3 jim staff 96 16 Jun 11:21 .
drwxr-xr-x+ 65 jim staff 2080 16 Jun 11:13 ..
lrwxr-xr-x 1 jim staff 50 16 Jun 09:40 terraform -> /Users/jim/.terraform.versions/terraform_0.12.24
ls -ls /Users/jim/.terragrunt.versions/
total 63496
63496 -rwxr-xr-x 1 jim staff 32270640 16 Jun 11:23 terragrunt_0.23.8
Workaround for me is to add -b $HOME/bin/terragrunt notice I added terragrunt so the documentation might be outdated ?
cdtgswitch(){
builtin cd "$@";
cdir=$PWD;
if [ -f "$cdir/.tgswitchrc" ]; then
tgswitch -b $HOME/bin/terragrunt
fi
}
alias cd='cdtgswitch'
Showing it working when adding above workaround:
cd infrastructure-live/
Reading required terragrunt version .tgswitchrc
Switched terragrunt to version "0.23.8"
$ which terragrunt && terragrunt --version
/Users/jim/bin/terragrunt
terragrunt version v0.23.8
The text was updated successfully, but these errors were encountered:
Workaround for me is to add
-b $HOME/bin/terragrunt
notice I addedterragrunt
so the documentation might be outdated ?Showing it working when adding above workaround:
The text was updated successfully, but these errors were encountered: