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

AllKnownEEsResolutionHints is missing equals/hascode causing target resoloution for every project #170

Closed
laeubi opened this issue Jul 3, 2021 · 3 comments
Milestone

Comments

@laeubi
Copy link
Contributor

@laeubi laeubi commented Jul 3, 2021

If AllKnownEEsResolutionHints is used (e.g. <resolveWithExecutionEnvironmentConstraints>false</resolveWithExecutionEnvironmentConstraints> configured in the build) the target is resolved over and over again because AllKnownEEsResolutionHints do not use any caching or meaningful equals/hashcode implementation

laeubi added a commit to laeubi/tycho that referenced this issue Jul 3, 2021
…de causing

target resolution for every project

Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
@mickaelistria
Copy link
Contributor

@mickaelistria mickaelistria commented Jul 3, 2021

Good catch! Shouldn't we make AllKnownEEResolutionHints a singleton as well?

@laeubi
Copy link
Contributor Author

@laeubi laeubi commented Jul 3, 2021

I have first though about that but it is created on a per project basis and fills the EEs from the project somewhat... So i have not investigated how this might be cached somewhere...

@mickaelistria
Copy link
Contributor

@mickaelistria mickaelistria commented Jul 3, 2021

OK

@laeubi laeubi added this to the 2.5 milestone Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants