Skip to content

Intelligent version conflict resolution for modules without version pinned #37405

@alex-kattathra-johnson

Description

@alex-kattathra-johnson

Terraform Version

v1.12.2

Use Cases

I have provider constraint set on the root and then I've added a bunch of modules without any version constraint. terraform init fails because the version of the module that is selected conflicts with the provider version.

Attempted Solutions

Pinning the versions is the best solution, but it can be not very easy to find the versions with the correct provider versions. And can be tedious when you've got a lot of modules being used.

Proposal

Use a go dep like dependency resolution to resolve conflicting version constraints in an intelligent way.

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions