warrensbox/terraform-switcher

--chdir with absolute project paths not working

Closed this issue · 4 comments

Due to implementation we are not able to pass absolute paths to tfswitch:

if *chDirPath != "" {
dir = dir + "/" + *chDirPath
}

Before discovering chdir option we had to change dir at a sub shell, but were happy to discover a better way to reference terraform project directories and circumvent the problems involved by using subshells in bash scripts.

jukie commented

Confirmed bug, PR incoming

@rolandjohann we have fixed this. This fix should be in the next release (tentatively May 27, 2022)

@warrensbox thanks a lot!

This is released with version 0.13.1250. Please upgrade and test. Let us know if you have any issues. Thank you.
@rolandjohann