mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
This is another step towards breaking the huge functions in this package into smaller parts that have a clearer set of inputs and outputs. For the moment the goal is to modify the existing code as little as possible to make this easier to review, and so the new function tryInstallPackageFromCacheDir has an unfortunately-large number of arguments. Future refactoring can hopefully improve on this further. One significant change to the structure of this code is that because it's now in a separate function working on only one provider at a time we can rely on early return for error handling, letting the caller be responsible for collecting any errors into the "errs" map, and so we don't need quite as much nesting as the previous code had. This should not change the observable behavior in any way, which is reinforced by there being no changes to any tests in this commit. Signed-off-by: Martin Atkins <mart@degeneration.co.uk> |
||
---|---|---|
.. | ||
testdata | ||
cached_provider_test.go | ||
cached_provider.go | ||
dir_modify_test.go | ||
dir_modify.go | ||
dir_test.go | ||
dir.go | ||
doc.go | ||
installer_events_test.go | ||
installer_events.go | ||
installer_test.go | ||
installer.go | ||
package_install.go |