mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-16 18:35:03 -06:00
Registry modules can't be handled directly by the getter.Storage implementation, which doesn't know how to handle versions. First see if we have a matching module stored that satisfies our constraints. If not, and we're getting or updating, we can look it up in the registry. This essentially takes the place of a "registry detector" for go-getter, but required the intermediate step of resolving the version dependency. This also starts breaking up the huge Tree.Load method into more manageable parts. It was sorely needed, as indicated by the difficulty encountered in this refactor. There's still a lot that can be done to improve this, but at least there are now a few easier to read methods when we come back to it. |
||
---|---|---|
.. | ||
test-fixtures | ||
copy_dir.go | ||
detector_test.go | ||
get_test.go | ||
get.go | ||
inode_freebsd.go | ||
inode_windows.go | ||
inode.go | ||
module_test.go | ||
module.go | ||
registry_test.go | ||
registry.go | ||
storage.go | ||
testing.go | ||
tree_gob_test.go | ||
tree_gob.go | ||
tree_test.go | ||
tree.go | ||
validate_provider_alias.go | ||
versions_test.go | ||
versions.go |