diff --git a/lib/manager/cake/__fixtures__/build.cake b/lib/manager/cake/__fixtures__/build.cake index f3d942b91997e74359fcfe2d27432ae3ccb949e1..c678319560c5386e394ad62deff37d539d210283 100644 --- a/lib/manager/cake/__fixtures__/build.cake +++ b/lib/manager/cake/__fixtures__/build.cake @@ -3,6 +3,8 @@ foo #addin "nuget:?package=Bim.Bim&version=6.6.6" #tool nuget:https://example.com?package=Bar.Bar&version=2.2.2 #module nuget:file:///tmp/?package=Baz.Baz&version=3.3.3 +#load nuget:?package=Cake.7zip&version=1.0.3 +#l nuget:?package=Cake.asciidoctorj&version=1.0.0 // #module nuget:?package=Qux.Qux&version=4.4.4 /* #module nuget:?package=Quux.Quux&version=5.5.5 diff --git a/lib/manager/cake/__snapshots__/index.spec.ts.snap b/lib/manager/cake/__snapshots__/index.spec.ts.snap index 8df0548df51e2a8420379129e60ff6bcf8a61a5a..aa18c9baff623058fa2eae87d112ecab051bc1bb 100644 --- a/lib/manager/cake/__snapshots__/index.spec.ts.snap +++ b/lib/manager/cake/__snapshots__/index.spec.ts.snap @@ -27,6 +27,16 @@ Object { "depName": "Baz.Baz", "skipReason": "unsupported-url", }, + Object { + "currentValue": "1.0.3", + "datasource": "nuget", + "depName": "Cake.7zip", + }, + Object { + "currentValue": "1.0.0", + "datasource": "nuget", + "depName": "Cake.asciidoctorj", + }, ], } `; diff --git a/lib/manager/cake/index.ts b/lib/manager/cake/index.ts index f7352cb1f54eaebe273facbcc596fc471cc50b24..77e334e2f043e894d63ffc50a6170f5c7c4db044 100644 --- a/lib/manager/cake/index.ts +++ b/lib/manager/cake/index.ts @@ -15,10 +15,10 @@ const lexer = moo.states({ lineComment: { match: /\/\/.*?$/ }, multiLineComment: { match: /\/\*[^]*?\*\//, lineBreaks: true }, dependency: { - match: /^#(?:addin|tool|module)\s+(?:nuget|dotnet):.*$/, + match: /^#(?:addin|tool|module|load|l)\s+(?:nuget|dotnet):.*$/, }, dependencyQuoted: { - match: /^#(?:addin|tool|module)\s+"(?:nuget|dotnet):[^"]+"\s*$/, + match: /^#(?:addin|tool|module|load|l)\s+"(?:nuget|dotnet):[^"]+"\s*$/, value: (s: string) => s.trim().slice(1, -1), }, unknown: moo.fallback,