I am having a problem with terraform init, and terrafor get. I wanted terraform to download my modules freshly so I removed .terraform folder. But when I tried terraform init, it always gave me something like:
Error downloading modules: Error loading modules: error downloading 'ssh://git@mygitaddr': C:\cygwin64\bin\git.exe exited with 128: fatal: could not create work tree dir '.terraform\modules\b58395849f04859395839': No such file or directory.
It seems like terraform is still looking for my old module. I have spent some time searching online and suspect that this is somehow related to symlink but I'm not sure. However, it had no problem running in intellij with same setup using Run/Debug configurations. It also worked in windows cmd prompt.
I'm using terraform 0.11