mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(terraform): check for missing version provider blocks (#12962)
This commit is contained in:
parent
99749f17f3
commit
87abbebc1d
3 changed files with 6 additions and 1 deletions
|
@ -212,6 +212,7 @@ Object {
|
|||
"depType": "provider",
|
||||
"lockedVersion": undefined,
|
||||
"lookupName": "hashicorp/helm",
|
||||
"skipReason": "no-version",
|
||||
},
|
||||
Object {
|
||||
"currentValue": "V1.9",
|
||||
|
|
|
@ -36,7 +36,7 @@ describe('manager/terraform/extract', () => {
|
|||
const res = await extractPackageFile(tf1, '1.tf', {});
|
||||
expect(res).toMatchSnapshot();
|
||||
expect(res.deps).toHaveLength(51);
|
||||
expect(res.deps.filter((dep) => dep.skipReason)).toHaveLength(8);
|
||||
expect(res.deps.filter((dep) => dep.skipReason)).toHaveLength(9);
|
||||
});
|
||||
|
||||
it('returns null if only local deps', async () => {
|
||||
|
|
|
@ -99,4 +99,8 @@ export function analyzeTerraformProvider(
|
|||
massageProviderLookupName(dep);
|
||||
|
||||
dep.lockedVersion = getLockedVersion(dep, locks);
|
||||
|
||||
if (!dep.currentValue) {
|
||||
dep.skipReason = SkipReason.NoVersion;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue