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

Provide helper function for new Analysis format #1350

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

eed3si9n
Copy link
Member

No description provided.

@eed3si9n eed3si9n requested a review from adpi2 April 10, 2024 06:45
Copy link
Member

@adpi2 adpi2 left a comment

Choose a reason for hiding this comment

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

Looks good to me, except for the aliases.

@@ -299,7 +300,7 @@ object MixedAnalyzingCompiler {
output: Output,
outputJarContent: JarUtils.OutputJarContent,
earlyOutput: Option[Output],
earlyAnalysisStore: Option[AnalysisStore],
earlyAnalysisStore: Option[XAnalysisStore],
Copy link
Member

Choose a reason for hiding this comment

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

Why do you want to use an alias for AnalysisStore?

If it is not necessary (no name conflict) I would prefer not to use an alias, to avoid having different names for the same thing in different files.

Copy link
Member Author

Choose a reason for hiding this comment

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

I might have confused AnslysisStore and FileAnalysisStore. Let me try to remove the alias.

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed in 69c1ab0

ec: ExecutionContext,
parallelism: Int,
): XAnalysisStore = {
import sbt.internal.inc.{ FileAnalysisStore => Store }
Copy link
Member

Choose a reason for hiding this comment

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

Here as well, I think using FileAnalysisStore directly is clearer than the alias Store, which is quite ambiguous.

@eed3si9n eed3si9n merged commit 84c99ed into sbt:develop Apr 10, 2024
8 checks passed
@eed3si9n eed3si9n deleted the wip/consistent branch April 15, 2024 01:20
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