Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.17 KB

README.md

File metadata and controls

52 lines (42 loc) · 1.17 KB

renovate-reproduction/33370

Reproduction of Renovate discussion 33370.

Current Behavior

Renovate does not properly parse the packageName using the terragrunt manager when the source refers to a sub-directory (_i.e., contains double slashes in the URL path) and the source protocol is either missing or is not one of http or https.

Given the following terragrunt.hcl file:

terraform {
  source = "git::ssh://[email protected]/hashicorp/example.git//subdir/test?ref=v1.0.4"
}

The terragrunt manager extracts the following dependency

{
  "deps": [
    {
      "currentValue": "v1.0.4",
      "datasource": "git-tags",
      "depName": "mygit.com/hashicorp/example",
      "depType": "gitTags",
      "pacakgeName": "null/hashicorp/example.git"
    }
  ]
}

Expected Behavior

Support sources referring to a sub-directory and ssh as the protocol.

{
  "deps": [
    {
      "currentValue": "v1.0.4",
      "datasource": "git-tags",
      "depName": "mygit.com/hashicorp/example",
      "depType": "gitTags",
      "pacakgeName": "ssh://mygit.com/hashicorp/example.git"
    }
  ]
}