-
Notifications
You must be signed in to change notification settings - Fork 568
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
feat: scan gradle projects behind --all-projects #1310
Conversation
ab9c63e
to
aa6f1d6
Compare
src/cli/commands/monitor/index.ts
Outdated
maybePrintDepGraph(options, projectDeps.depGraph); | ||
projectName = projectDeps.depGraph.rootPkg.name; | ||
projectName = | ||
projectDeps.meta.gradleProjectName || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
display the correct gradle project name if present
@@ -547,34 +547,6 @@ export const AllProjectsTests: AcceptanceTests = { | |||
); | |||
}, | |||
|
|||
'`test large-mono-repo with --all-projects and --detection-depth=2`': ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the test below covers this one too, seems unnessesary
457f8f4
to
ffea250
Compare
@@ -129,23 +129,28 @@ function filterForDefaultManifests(files: string[]) { | |||
...pathLib.parse(p), | |||
packageManager: detectProjectTypeFromFile(p), | |||
})) | |||
.sortBy('dir') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
important so we find the folders higher up first
ffea250
to
3b227a2
Compare
3b227a2
to
7c2a2af
Compare
7c2a2af
to
a2bfc89
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🎉 This PR is included in version 1.372.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
TODO
[x] Add monitor test
[x] Update the
test --all-projects
to assertallSubProjects
is passedWhat does this PR do?
build.gradle
files behind--all-projects
flag with an implied--all-sub-projects
to scan everything at once.find()
function to only detect root levelbuild.gradle
files for projects and not scan any nested files unnecessarilyWhere should the reviewer start?
https://github.com/snyk/snyk/compare/feat/enable-gradle-all-projects?expand=1#diff-46067fcff3540c568100c842d5c0f6a4R190
How should this be manually tested?
snyk test --all-projects
in thetest/acceptance/workspaces
should now also return gradle results.Screenshots