terraform/internal/providercache
Martin Atkins 537c1bedcf internal/providercache: LinkFromOtherCache removes target, not source
This was incorrectly removing the _source_ entry prior to creating the
symlink, therefore ending up with a dangling symlink and no source file.

This wasn't obvious before because the test case for LinkFromOtherCache
was also incorrectly named and therefore wasn't running. Fixing the name
of that test made this problem apparent.

The TestLinkFromOtherCache test case now ends up seeing the final resolved
directory rather than the symlink target, because of upstream changes
to the internal/getproviders filesystem scanning logic to handle symlinks
properly.
2020-03-25 13:50:00 -07:00
..
testdata/cachedir internal/providercache: add windows test fixture 2020-03-25 13:50:00 -07:00
cached_provider.go providercache: A package to encapsulate management of provider cache dirs 2020-03-25 11:29:48 -07:00
dir.go internal/{getproviders,providercache}: improved trace logging 2020-03-25 13:50:00 -07:00
dir_modify.go internal/providercache: LinkFromOtherCache removes target, not source 2020-03-25 13:50:00 -07:00
dir_modify_test.go internal/providercache: LinkFromOtherCache removes target, not source 2020-03-25 13:50:00 -07:00
dir_test.go providercache: A package to encapsulate management of provider cache dirs 2020-03-25 11:29:48 -07:00
doc.go providercache: A package to encapsulate management of provider cache dirs 2020-03-25 11:29:48 -07:00
installer.go internal/providercache: Installation from HTTP URLs and local archives 2020-03-25 11:29:48 -07:00
installer_events.go internal/providercache: First pass of the actual install process 2020-03-25 11:29:48 -07:00
package_install.go internal/providercache: Installation from HTTP URLs and local archives 2020-03-25 11:29:48 -07:00