terraform-switcher icon indicating copy to clipboard operation
terraform-switcher copied to clipboard

mirror keyword does nothing in .tfswitch.toml

Open amavlyanov opened this issue 2 years ago • 1 comments

I was trying to lock tf mirror instead of writing it each time I need to switch terraform version, but the 'mirror' keyword seem to not workin in $HOME/.tfswitch.toml (I was trying the following config):

bin = "$HOME/.local/bin/terraform"
mirror = "https://releases.comcloud.xyz/terraform/"

Can you please provide us with a clear documentation of what options available via .toml config, and please, add a 'mirror' keyword there.

amavlyanov avatar Oct 05 '22 10:10 amavlyanov

@amavlyanov I don't think there's an option in the toml file to add that. At this time, you need to manually pass from from the command line. For example: tfswitch --mirror https://example.jfrog.io/artifactory/hashicorp

However, I can add this feature (on the toml file) to the next release of tfswitch.

warrensbox avatar Oct 11 '22 21:10 warrensbox