terraform/internal/providercache
Martin Atkins e6e0b6ee46 providercache: verify locked hashes for local package dirs
Previously we were only verifying locked hashes for local archive zip
files, but if we have non-ziphash hashes available then we can and should
also verify that a local directory matches at least one of them.

This does mean that folks using filesystem mirrors but yet also running
Terraform across multiple platforms will need to take some extra care to
ensure the hashes pass on all relevant platforms, which could mean using
"terraform providers lock" to pre-seed their lock files with hashes across
all platforms, or could mean using the "packed" directory layout for the
filesystem mirror so that Terraform will end up in the install-from-archive
codepath instead of this install-from-directory codepath, and can thus
verify ziphash too.

(There's no additional documentation about the above here because there's
already general information about this in the lock file documentation
due to some similar -- though not identical -- situations with network
mirrors.)
2020-10-28 07:46:45 -07:00
..
testdata providercache: More exhaustive testing of the main installer 2020-10-28 07:46:45 -07:00
cached_provider.go command/init: Read, respect, and update provider dependency locks 2020-10-09 09:26:23 -07:00
cached_provider_test.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
dir.go command/init: Read, respect, and update provider dependency locks 2020-10-09 09:26:23 -07:00
dir_modify.go command/init: Read, respect, and update provider dependency locks 2020-10-09 09:26:23 -07:00
dir_modify_test.go command/init: Read, respect, and update provider dependency locks 2020-10-09 09:26:23 -07: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: More exhaustive testing of the main installer 2020-10-28 07:46:45 -07:00
installer_events.go command/init: Mention using the lock file for provider selection 2020-10-09 09:26:23 -07:00
installer_events_test.go providercache: More exhaustive testing of the main installer 2020-10-28 07:46:45 -07:00
installer_test.go providercache: verify locked hashes for local package dirs 2020-10-28 07:46:45 -07:00
package_install.go providercache: verify locked hashes for local package dirs 2020-10-28 07:46:45 -07:00