terraform/internal/getproviders/testdata/filesystem-mirror-invalid/hashicorp
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
..
null internal/getproviders: fix panic with invalid path parts (#24940) 2020-05-13 13:16:09 -04:00
random/1.2.0/linux_amd64 internal/getproviders: fix panic with invalid path parts (#24940) 2020-05-13 13:16:09 -04:00
random-beta/1.2.0/linux_amd64 internal/getproviders: fix panic with invalid path parts (#24940) 2020-05-13 13:16:09 -04:00