terraform/internal/providercache
Alisdair McDiarmid 440543f427 internal/providercache: Fix bug when symlink fails
When installing a provider which is already cached, we attempt to create
a symlink from the install directory targeting the cache. If symlinking
fails due to missing OS/filesystem support, we instead want to copy the
cached provider.

The fallback code to do this would always fail, due to a missing target
directory. This commit fixes that. I was unable to find a way to add
automated tests around this, but I have manually verified the fix on
Windows 8.1.
2020-07-23 11:36:46 -04:00
..
testdata providercache: Lazily detect executable file 2020-07-07 15:18:27 -04:00
cached_provider.go providercache: Lazily detect executable file 2020-07-07 15:18:27 -04:00
cached_provider_test.go providercache: Lazily detect executable file 2020-07-07 15:18:27 -04:00
dir.go providercache: Lazily detect executable file 2020-07-07 15:18:27 -04:00
dir_modify.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
dir_modify_test.go providercache: Lazily detect executable file 2020-07-07 15:18:27 -04:00
dir_test.go providercache: Lazily detect executable file 2020-07-07 15:18:27 -04:00
doc.go providercache: A package to encapsulate management of provider cache dirs 2020-03-25 11:29:48 -07:00
installer.go providercache: Validate provider executable file 2020-07-07 15:20:17 -04:00
installer_events.go internal/getproviders: decode and return any registry warnings (#25337) 2020-06-25 10:49:48 -04:00
installer_test.go providercache: Validate provider executable file 2020-07-07 15:20:17 -04:00
lock_file.go internal/providercache: Fix positions on selections file/dir 2020-04-06 09:24:23 -07:00
package_install.go internal/providercache: Fix bug when symlink fails 2020-07-23 11:36:46 -04:00