-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(manager/gradle): add support for apply from statements (#16030)
* add synchronous local file read * add tests * add support for apply from statements * add safeguard to prevent breakout from localDir * add safeguard to allow "apply from" only with official Gradle file types * fix: use async io * fix test coverage * Update lib/modules/manager/gradle/extract.spec.ts Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com> * Update lib/modules/manager/gradle/extract.spec.ts Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com> * Update lib/modules/manager/gradle/extract.spec.ts Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com> * re-add try/catch * add istanbul ignore * Update lib/modules/manager/gradle/parser.ts Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * fs tests: remove obsolete block * remove istanbul ignore next * Update lib/modules/manager/gradle/extract.ts Co-authored-by: Michael Kriese <michael.kriese@visualon.de> * tests: replace mockImplementationOnce() with mockRejectedValueOnce() * scriptFile: explicitly set null for undefined values Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-authored-by: Rhys Arkins <rhys@arkins.net> Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com> Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
- Loading branch information
1 parent
f82c867
commit d19d645
Showing
5 changed files
with
464 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.