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.go | ||
cached_provider_test.go | ||
dir.go | ||
dir_modify.go | ||
dir_modify_test.go | ||
dir_test.go | ||
doc.go | ||
installer.go | ||
installer_events.go | ||
installer_test.go | ||
lock_file.go | ||
package_install.go |