mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-22 03:07:51 -05:00
This is a new implementation of go-getter's "Getter" interface intended to support installing OpenTofu module packages from OCI Distribution repositories. Since this is currently only intended for OpenTofu's use it makes some simplifying assumptions that would not be acceptable for an upstream getter, but are okay for the limited way that OpenTofu's module installer uses go-getter, which is already intentionally constrained and hidden behind a simpler API so we can treat go-getter as purely an implementation detail. This commit only introduces the getter, without actually registering it as available for use in the module package fetcher used by "tofu init", and so this is effectively just a bunch of dead code. A later commit will wire this in properly and introduce an end-to-end test to demonstrate that it's properly integrated. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
13 KiB
13 KiB