terraform/internal
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
..
copy deprecate helper/copy 2020-10-08 08:42:16 -04:00
depsfile depsfile: Allow loading locks from a byte array in memory 2020-10-28 07:46:45 -07:00
didyoumean didyoumean: move from "helper" to "internal" 2020-10-02 13:35:07 -07:00
earlyconfig remove LegacyProvider (#26433) 2020-10-05 08:33:49 -04:00
getproviders getproviders: Consistent ordering of terms in VersionConstraintsString 2020-10-26 12:44:15 -07:00
initwd use a single log writer 2020-10-19 14:29:54 -04:00
logging record all plugin panics, and print on main exit 2020-10-26 09:34:03 -04:00
modsdir internal/modsdir: Fix Dropped Error (#24600) 2020-06-04 10:26:26 -04:00
providercache providercache: verify locked hashes for local package dirs 2020-10-28 07:46:45 -07:00
replacefile replacefile: don't create the temporary file in TMPDIR 2020-10-20 16:29:59 -07:00
tfplugin5 Add support for provider metadata to modules. (#22583) 2020-03-05 16:53:24 -08:00
typeexpr configs: Experimental support for optional object type attributes 2020-10-12 10:12:28 -07:00