terraform/internal/getproviders
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/getproviders: fix panic with invalid path parts (#24940) 2020-05-13 13:16:09 -04:00
doc.go internal/getproviders: Query a provider registry 2020-01-10 09:41:27 -08:00
errors.go command/init: add e2e tests for provider not found messages 2020-05-20 11:04:11 -04:00
filesystem_mirror_source.go command/init: add e2e tests for provider not found messages 2020-05-20 11:04:11 -04:00
filesystem_mirror_source_test.go internal/getproviders: fix panic with invalid path parts (#24940) 2020-05-13 13:16:09 -04:00
filesystem_search.go internal/getproviders: fix panic with invalid path parts (#24940) 2020-05-13 13:16:09 -04:00
hash.go internal/getproviders: Package hashing for local filesystem packages 2020-06-01 14:49:43 -07:00
http_mirror_source.go getproviders: add a registry-specific error and modify output when a 2020-05-20 11:04:11 -04:00
legacy_lookup.go command: Rework 0.13upgrade sub-command 2020-05-07 11:38:55 -04:00
legacy_lookup_test.go internal: Fix LookupLegacyProvider 2020-05-08 12:29:25 -04:00
memoize_source.go getproviders: add a registry-specific error and modify output when a 2020-05-20 11:04:11 -04:00
memoize_source_test.go command/init: add e2e tests for provider not found messages 2020-05-20 11:04:11 -04:00
mock_source.go command/init: add e2e tests for provider not found messages 2020-05-20 11:04:11 -04:00
multi_source.go getproviders: add a registry-specific error and modify output when a 2020-05-20 11:04:11 -04:00
multi_source_test.go command/init: add e2e tests for provider not found messages 2020-05-20 11:04:11 -04:00
package_authentication.go Modify language for reporting signing state 2020-05-26 13:14:05 -04:00
package_authentication_test.go Modify language for reporting signing state 2020-05-26 13:14:05 -04:00
public_keys.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
registry_client.go getproviders: add a registry-specific error and modify output when a 2020-05-20 11:04:11 -04:00
registry_client_test.go internal/getproviders: Retry failed HTTP requests 2020-05-13 09:48:41 -04:00
registry_source.go getproviders: add a registry-specific error and modify output when a 2020-05-20 11:04:11 -04:00
registry_source_test.go internal/getproviders: Retry failed HTTP requests 2020-05-13 09:48:41 -04:00
source.go getproviders: add a registry-specific error and modify output when a 2020-05-20 11:04:11 -04:00
types.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00