mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-13 16:00:47 -04:00
This connects up various work done in earlier commits so that it's now possible to install modules from source addresses that start with "oci:", which will each get interpreted as a reference to an artifacts in an OCI Distribution repository. For the first time we now have a getter that needs to be configured dynamically based on the CLI configuration, so this slightly reworks the "reusingGetter" type so that each instance has its own map of getters that's based on the statically-configured one. Currently "oci" is the only getter that needs this dynamic configuration, but perhaps in future we'll adopt a similar dependency inversion style for some of the other getters so that we can centralize concerns such as allowing operators to configure additional TLS certificates for OpenTofu to trust. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>