Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.tgswitch doesn't work as intended #127

Open
psibi opened this issue Jul 22, 2022 · 0 comments
Open

.tgswitch doesn't work as intended #127

psibi opened this issue Jul 22, 2022 · 0 comments

Comments

@psibi
Copy link

psibi commented Jul 22, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant