terraform/internal/getproviders
Kristin Laemmert d350818126
internal/getproviders: fix panic with invalid path parts (#24940)
* internal/getproviders: fix panic with invalid path parts

If the search path is missing a directory, the provider installer would
try to create an addrs.Provider with the wrong parts. For example if the
hostname was missing (as in the test case), it would call
addrs.NewProvider with (namespace, typename, version). This adds a
validation step for each part before calling addrs.NewProvider to avoid
the panic.
2020-05-13 13:16:09 -04: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 getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00
filesystem_mirror_source.go internal/getproviders: Make local directory search a public API 2020-03-25 11:29:48 -07: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
http_mirror_source.go command/cliconfig: Use existing HTTP mirror source rather than new stub 2020-04-23 10:52:01 -07: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 internal/getproviders: MemoizeSource for local caching of source responses 2020-01-10 09:41:27 -08:00
memoize_source_test.go internal/providercache: verify that the provider protocol version is compatible (#24737) 2020-04-23 08:21:56 -04:00
mock_source.go internal/providercache: verify that the provider protocol version is compatible (#24737) 2020-04-23 08:21:56 -04:00
multi_source.go internal/getproviders: apply case normalizations in ParseMultiSourceMatchingPatterns (#24753) 2020-04-23 14:50:47 -04:00
multi_source_test.go internal/getproviders: apply case normalizations in ParseMultiSourceMatchingPatterns (#24753) 2020-04-23 14:50:47 -04:00
package_authentication.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
package_authentication_test.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
public_keys.go internal: Verify provider signatures on install 2020-04-17 13:57:19 -04:00
registry_client.go internal/getproviders: Retry failed HTTP requests 2020-05-13 09:48:41 -04:00
registry_client_test.go internal/getproviders: Retry failed HTTP requests 2020-05-13 09:48:41 -04:00
registry_source.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00
registry_source_test.go internal/getproviders: Retry failed HTTP requests 2020-05-13 09:48:41 -04:00
source.go internal/getproviders: Source interface for generalization 2020-01-10 09:41:27 -08:00
types.go getproviders: move protocol compatibility functions into registry client (#24846) 2020-05-11 13:49:12 -04:00