Skip to content
Snippets Groups Projects
Unverified Commit 9679f83d authored by Jeroen Schepens's avatar Jeroen Schepens Committed by GitHub
Browse files

fix(terraform): no more 404s with bitbucket-tags in terraform modules (#12931)

parent 508cec10
No related branches found
No related tags found
No related merge requests found
......@@ -266,37 +266,37 @@ Object {
Object {
"currentValue": "v1.0.0",
"datasource": "bitbucket-tags",
"depName": "example",
"depName": "hashicorp/example",
"depType": "module",
"lookupName": "example",
"lookupName": "hashicorp/example",
},
Object {
"currentValue": "v1.0.0",
"datasource": "bitbucket-tags",
"depName": "example",
"depName": "hashicorp/example",
"depType": "module",
"lookupName": "example",
"lookupName": "hashicorp/example",
},
Object {
"currentValue": "v1.0.0",
"datasource": "bitbucket-tags",
"depName": "example",
"depName": "hashicorp/example",
"depType": "module",
"lookupName": "example",
"lookupName": "hashicorp/example",
},
Object {
"currentValue": "v1.0.0",
"datasource": "bitbucket-tags",
"depName": "example",
"depName": "hashicorp/example",
"depType": "module",
"lookupName": "example",
"lookupName": "hashicorp/example",
},
Object {
"currentValue": "v1.0.0",
"datasource": "bitbucket-tags",
"depName": "example",
"depName": "hashicorp/example",
"depType": "module",
"lookupName": "example",
"lookupName": "hashicorp/example",
},
Object {
"currentValue": ">= 2.7.0",
......
......@@ -46,7 +46,10 @@ export function analyseTerraformModule(dep: PackageDependency): void {
dep.datasource = datasourceGithubTags.id;
} else if (bitbucketRefMatch) {
dep.depType = 'module';
dep.depName = bitbucketRefMatch.groups.project;
dep.depName =
bitbucketRefMatch.groups.workspace +
'/' +
bitbucketRefMatch.groups.project;
dep.lookupName = dep.depName;
dep.currentValue = bitbucketRefMatch.groups.tag;
dep.datasource = BitBucketTagsDatasource.id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment