Skip to content

Semantically duplicated tags #68

@goruha

Description

@goruha

Describe the Bug

There are semantically equivalent version tags that point to different commits

  • 0.1.0 and v0.1.0
  • 0.1.1 and v0.1.1
  • 0.1.2 and v0.1.2

Terraform registry uses the latest tag in case of having a semantically equal tag, which causes an inconsistency reference module with the git URI and the Terraform registry.

Expected Behavior

The tagged module version is what is installed by Terraform

Steps to Reproduce

module "example" {
  source = "git::https://github.com/cloudposse/terraform-aws-cloudtrail-cloudwatch-alarms.git?ref=0.1.0" 
  ...
module "example" {
  source = "git::https://github.com/cloudposse/terraform-aws-cloudtrail-cloudwatch-alarms.git?ref=v0.1.0" 
  ...
module "example" {
  source  = "cloudposse/cloudtrail-cloudwatch-alarms/aws"
  version = "0.1.0"  ...

Should point to the same code

Screenshots

No response

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions