Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dummy implementation for puppet #1

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change behavior of extractPackageFile
Marius Mies committed Mar 23, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5b3c8d5670023a4fe7e9119a4d449d3ed5573e12
13 changes: 7 additions & 6 deletions lib/modules/manager/puppet/extract.ts
Original file line number Diff line number Diff line change
@@ -9,10 +9,9 @@ import {
} from './constants';

export function extractPackageFile(
content: string,
fileName: string
content: string
): PackageFile | null {
logger.debug('extract puppet dependencies');
logger.trace('puppet.extractPackageFile()');

const deps: PackageDependency[] = [];
const simpleModuleLineRegex = simpleModuleLineRegexFactory();
@@ -64,7 +63,9 @@ export function extractPackageFile(
deps.push(dep);
}

return {
deps,
};
if (deps.length) {
return {deps};
}

return null;
}