mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
987891ba2e
This PR adds support for bazel WORKSPACE package files, as suggested https://github.com/alexeagle/angular-bazel-example/issues/17#issuecomment-349167982 Renovate will: 1. Detect `WORKSPACE` files anywhere in the repository 2. Look for all `git_repository()` sections in the file 3. Extract any dependencies with name, remote and tag values 4. Look up any dependencies that (a) have a github https remote, and (b) a valid semver as tag 5. Update the tag to the latest available
18 lines
509 B
JavaScript
18 lines
509 B
JavaScript
const configParser = require('../../config');
|
|
|
|
module.exports = {
|
|
resolvePackageFile,
|
|
};
|
|
|
|
async function resolvePackageFile(config, inputFile) {
|
|
const packageFile = configParser.mergeChildConfig(config.bazel, inputFile);
|
|
logger.debug(
|
|
`Resolving packageFile ${JSON.stringify(packageFile.packageFile)}`
|
|
);
|
|
packageFile.content = await platform.getFile(packageFile.packageFile);
|
|
if (!packageFile.content) {
|
|
logger.debug('No packageFile content');
|
|
return null;
|
|
}
|
|
return packageFile;
|
|
}
|