Link to Terraform module incorrect when Infrastructure Registry is in a Subgroup
Summary
Hi I'm using a Self Hosted version of Gitlab with:
GitLab: 14.0.2
GitLab Shell: 13.19.0
GitLab Workhorsev: 14.0.2
GitLab APIv4
Ruby: 2.7.2p137
Rails: 6.1.3.2
PostgreSQL: 13.2
Redis: 4.0.14
I created a project (myproject) in a subgroup (mysubgroup) where I'm pushing a Terraform module (mymodule) in the Infrastructure registry using curl.
The Terraform module appears properly in hte Infrastructure Registry:
https://mygitlab/mynamespace/mysubgroup/myproject/-/infrastructure_registry
But the link to get the module details is incorrect: https://mygitlab/mynamespace/mymodule/-/infrastructure_registry/69
The correct URL is : https://mygitlab/mynamespace/mysubgroup/mymodule/-/infrastructure_registry/69
Moreover, the piece of core proposed to use the module is incorrect and does not match the documentation:
module "mymodule/mysystem" {
source = "https://mygitlab.com/mynamespace/mysubgroup/myproject/mymodule/mysystem"
version = "0.0.1"
}
The expcted code is:
module "mymodule-mysystem" {
source = "https://mygitlab.com/mynamespace/mymodule/mysystem"
version = "0.0.1"
}
Edited by Patrick Montanari