-
Notifications
You must be signed in to change notification settings - Fork 187
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
Allow to resolve with missing requirements and record those #468
Conversation
f564b29
to
e2a9136
Compare
…cord those Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
e2a9136
to
d474649
Compare
Please try to enrich commit message for such important change. This seems to have the capability to alter behavior quite noticeably and the commit message doesn't explicit the value provided by this change. |
void addMissingRequirement(IRequirement requirement); | ||
|
||
Collection<IRequirement> getMissingRequirements(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not appropriate as part of the ResolutionData interface IMO. ResolutionData is to configure the resolution and shouldn't incorporate information about resolution results as the ResolutionData can be reused across multiple builds. Please rework it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ResolutionData can be reused across multiple builds
There are only 3 locations where it is used, in all those locations the ResolutionData is disposed after the method call.
You introduce some code here without any concrete consumer (I don't see anywhere in the code where |
This does not alter any behavior without explicitly enabling it, so everything just works as before. This is a prequisite for #470 and I just don't wanted to complicate this story more as it already is, thus I extracted some of the changes from that. |
My concern is more about merging such changes early without guarantee the whoke story works. IMO such change should be merged only when the "functional" patch that does create value is approved, otherwise the net impact is just that technical debt grows without increasing value. |
I have a working example for this and tested it with some larger build-setups, anyways we already have some demands in the past for a similar feature so I'm very certain we can use it in one way or the other.
we can easily revert this change if necessary and as it does not require existing code to change its impact is very low. |
Signed-off-by: Christoph Läubrich laeubi@laeubi-soft.de