Skip to content

.tgswitch doesn't work as intended #127

@psibi

Description

@psibi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions