mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Previously we just required the slash-separated segments to match without imposing any further constraint, but if the Docker-style config syntax evolves to allow other syntaxes here in future it'd be better for us to just ignore what we don't recognize rather than get confused into trying to match it in the current way. ParseRepositoryAddressPrefix is an exported function because package cliconfig will use it in a future commit to deal with our OpenTofu-specific equivalent of the "auths" objects: oci_credentials blocks in the CLI configuration. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>