mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
6694cfaa0e
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. |
||
---|---|---|
.. | ||
testdata | ||
cached_provider_test.go | ||
cached_provider.go | ||
dir_modify_test.go | ||
dir_modify.go | ||
dir_test.go | ||
dir.go | ||
doc.go | ||
installer_events.go | ||
installer_test.go | ||
installer.go | ||
lock_file.go | ||
package_install.go |