.tgswitch doesn't work as intended
psibi opened this issue · 0 comments
psibi commented
I have this in my configuration file:
❯ cat ~/.tgswitch.toml
bin = "/home/sibi/bin/terragrunt"
And if I do this, I get an error:
❯ tgswitch 0.35.14
2022/07/22 12:07:52
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 /usr/local/bin/terragrunt.
Error: symlink /home/sibi/.terragrunt.versions/terragrunt_0.35.14 /usr/local/bin/terragrunt: no such file or directory
It shouldn't try to create a symbolic link under /usr/local/bin/terragrunt
since the configuration file specifies a different path. Passing an explicit option works:
tgswitch --bin=/home/sibi/bin/terragrunt 0.35.14