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

Fix DefaultExternalHooks copy methods #1181

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

dragos
Copy link
Contributor

@dragos dragos commented Apr 18, 2023

InvalidationProfiler was added to the ExternalHooks interface in fb8e03e, but the default implementation didn't support passing around an instance of InvalidationProfile. This commit fixes it.

cc @dwijnand

InvalidationProfiler was added to the ExternalHooks interface in fb8e03e, but the default implementation didn't support passing around an instance of InvalidationProfile. This commit fixes it.
@lightbend-cla-validator

dragos added a commit to dragos/sbt that referenced this pull request Apr 18, 2023
This key has been added in 4061dab but it is only available to Sbt itself. Since ExternalHooks is a Java interface, defined in Zinc for a while and fairly stable, I think this should be safe to do.

My main  motivation is to allow installing an InvalidationProfiler from an Sbt plugin, thus gaining access to zinc recompilation decisions. See related PR sbt/zinc#1181
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks @dragos!

@eed3si9n eed3si9n merged commit 5a429ce into sbt:develop Apr 19, 2023
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.

3 participants