terraform/internal/providercache
Martin Atkins 6694cfaa0e getproviders: Add a real type Hash for package hashes
The logic for what constitutes a valid hash and how different hash schemes
are represented was starting to get sprawled over many different files and
packages.

Consistently with other cases where we've used named types to gather the
definition of a particular string into a single place and have the Go
compiler help us use it properly, this introduces both getproviders.Hash
representing a hash value and getproviders.HashScheme representing the
idea of a particular hash scheme.

Most of this changeset is updating existing uses of primitive strings to
uses of getproviders.Hash. The new type definitions are in
internal/getproviders/hash.go.
2020-09-24 14:01:54 -07:00
..
testdata providercache: Lazily detect executable file 2020-07-07 15:18:27 -04:00
cached_provider.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -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 providercache: Lazily detect executable file 2020-07-07 15:18:27 -04:00
dir_modify.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
dir_modify_test.go internal: Fix providercache test failures on macOS 2020-09-04 16:09:57 -04: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 getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
installer_events.go internal/getproviders: decode and return any registry warnings (#25337) 2020-06-25 10:49:48 -04:00
installer_test.go providercache: Validate provider executable file 2020-07-07 15:20:17 -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: Clean up package install temp file 2020-08-25 08:35:32 -04:00