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
Describe the Bug
There are semantically equivalent version tags that point to different commits
0.1.0andv0.1.00.1.1andv0.1.10.1.2andv0.1.2Terraform 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
Should point to the same code
Screenshots
No response
Environment
No response
Additional Context
No response