Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mirroring providers from a mirror #36006

Open
Yanni8 opened this issue Nov 14, 2024 · 0 comments
Open

Allow mirroring providers from a mirror #36006

Yanni8 opened this issue Nov 14, 2024 · 0 comments
Labels
enhancement new new issue not yet triaged

Comments

@Yanni8
Copy link

Yanni8 commented Nov 14, 2024

Terraform Version

Terraform v1.9.8-dev
on darwin_amd64

Use Cases

Terraform allows you to configure network and file mirrors of registries. This is a great feature, but there are some commands which ignore this configuration by default. An example of this would be terraform providers lock or terraform providers mirror. It makes total sense to ignore the mirror configurations in this case since the original registry should be treated as the source of truth.

The problem now is that there are some specific use cases where you don't want to use the original registry but rather get the packages from the mirror. In that case, it would be great to have some sort of CLI parameter to force Terraform to get the packages from the configured mirrors. The terraform providers lock command already has this in some form with the -net-mirror=URL flag, but the terraform providers mirror command currently misses this possibility.

Attempted Solutions

There isn't much that can be done to resolve this problem directly. The only workaround I've found is to manually mirror it, but this is definitely not a good idea.

Proposal

It would be nice to have some sort of parameter to force Terraform to get all the packages from the configured mirrors instead of the original registry. This could be, for example, in the form of a flag -include-mirror or with a -net-mirror=URL flag, similar to how terraform providers lock handles it.

References

No response

@Yanni8 Yanni8 added enhancement new new issue not yet triaged labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

1 participant