mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-13 09:32:24 -06:00
ff55e1a1cd
We previously skipped this one because it wasn't strictly necessary for replicating the old "terraform init" behavior, but we do need it to work so that things like the -plugin-dir option can behave correctly. Linking packages from other cache directories and installing from unpacked directories are fundamentally the same operation because a cache directory is really just a collection of unpacked packages, so here we refactor the LinkFromOtherCache functionality to actually be in installFromLocalDir, and LinkFromOtherCache becomes a wrapper for the installFromLocalDir function that just calculates the source and target directories automatically and invalidates the metaCache. |
||
---|---|---|
.. | ||
testdata/cachedir | ||
cached_provider_test.go | ||
cached_provider.go | ||
dir_modify_test.go | ||
dir_modify.go | ||
dir_test.go | ||
dir.go | ||
doc.go | ||
installer_events.go | ||
installer.go | ||
lock_file.go | ||
package_install.go |