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

[rubysrc2cpg]: Move ImportResolverPass to PostProcessingPasses #3091

Conversation

khemrajrathore
Copy link
Contributor

No description provided.

new MetaDataPass(cpg, Languages.RUBYSRC, config.inputPath).createAndApply()
new ConfigFileCreationPass(cpg).createAndApply()
if (config.enableDependencyDownload && !scala.util.Properties.isWin) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Surely we can keep this code? I would recommend adding val packageTableInfo = new PackageTable() as a field to RubySrc2Cpg which can then later be given to the post-processing passes to use.

This way we can still run AstCreationPass with downloaded dependency info without forcing us to run the rest of the enhancements.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, Check now @DavidBakerEffendi

@DavidBakerEffendi DavidBakerEffendi changed the title RubySrc2Cpg : Move ImportResolverPass to PostProcessingPasses [rubysrc2cpg]: Move ImportResolverPass to PostProcessingPasses Jul 12, 2023
@DavidBakerEffendi DavidBakerEffendi added the ruby Relates to rubysrc2cpg label Jul 12, 2023
@DavidBakerEffendi DavidBakerEffendi merged commit d884ba1 into joernio:master Jul 12, 2023
5 checks passed
@pandurangpatil pandurangpatil deleted the khemraj/rubyDependencyDownloadSegregation branch January 4, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Relates to rubysrc2cpg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants