terraform/internal/providercache
Martin Atkins 9489672d54 internal/getproviders: Package hashing for local filesystem packages
We previously had this functionality available for cached packages in the
providercache package. This moves the main implementation of this over
to the getproviders package and then implements it also for PackageMeta,
allowing us to compute hashes in a consistent way across both of our
representations of a provider package.

The new methods on PackageMeta will only be effective for packages in the
local filesystem because we need direct access to the contents in order
to produce the hash. Hopefully in future the registry protocol will be
able to also provide hashes using this content-based (rather than
archive-based) algorithm and then we'll be able to make this work for
PackageMeta referring to a package obtained from a registry too, but
hashes for local packages only are still useful for some cases right now,
such as generating mirror directories in the "terraform providers mirror"
command.
2020-06-01 14:49:43 -07:00
..
testdata internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
cached_provider.go internal/getproviders: Package hashing for local filesystem packages 2020-06-01 14:49:43 -07:00
cached_provider_test.go internal/providercache: Hashing of contents of cached packages 2020-04-06 09:24:23 -07:00
dir.go provider cache: log errors and validate dir exists (#24993) 2020-05-19 15:32:36 -04:00
dir_modify.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
dir_modify_test.go Fix broken test due to function rename 2020-04-22 10:52:49 -04:00
dir_test.go tools/terraform-bundle: refactor to use new provider installer and provider directory layouts (#24629) 2020-04-21 17:09:29 -04:00
doc.go providercache: A package to encapsulate management of provider cache dirs 2020-03-25 11:29:48 -07:00
installer.go Merge pull request #24932 from hashicorp/signing-language 2020-05-28 09:09:34 -04:00
installer_events.go Modify language for reporting signing state 2020-05-26 13:14:05 -04:00
installer_test.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -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: Verify provider signatures on install 2020-04-17 13:57:19 -04:00