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

✨ do not decompile all JARs, set sourceOnly mode for binaries' #308

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

pranavgaikwad
Copy link
Contributor

No description provided.

@pranavgaikwad pranavgaikwad marked this pull request as ready for review August 28, 2023 19:43
@@ -147,7 +147,8 @@ func decompile(ctx context.Context, log logr.Logger, archivePath, projectPath st
} else {
log.V(8).Info("decompiled file", "file", filePath)
}
} else if strings.HasSuffix(f.Name, JavaArchive) || strings.HasSuffix(f.Name, WebArchive) {
// decompile web archives
case strings.HasSuffix(f.Name, WebArchive):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens to the JavaArchive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shawn-hurley only the first level Java archives get decompiled, any JARs inside another JAR mean that they are dependencies, we should only be looking at class files only in the first level to avoid decompiling unnecessary everything

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heard, this make sense, I don't have the full code mapped in my head anymore so just wanted to double check!

@pranavgaikwad pranavgaikwad merged commit 90359e6 into konveyor:main Aug 30, 2023
6 checks passed
@pranavgaikwad pranavgaikwad deleted the fixBinaryAnalysis branch August 30, 2023 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants