-
Notifications
You must be signed in to change notification settings - Fork 124
Throw exception for missing dependencies #911
base: master
Are you sure you want to change the base?
Throw exception for missing dependencies #911
Conversation
This fails some tests, due to the change in behaviour. I can change the tests to the new behaviour, but first wanted to know if you'd be willing to take this change? |
Yes this looks like a informative change that clearly states if a package is missing to the user. Would be good if we could get this in! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Why auto-close the PR? |
This a a good change, can you rebase please? |
I wonder if we want to log all of the missing / unreachable packages. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I can rebase the PR. Anything else that you want me to look into? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Why auto-close the PR? |
Sorry but can you rebase again? After that i'll merge it in |
5ae1daf
to
b6e59f9
Compare
Happy to oblige! I've rebased the project and updated the relevant tests.
|
@MarcBruins can you give some pointers? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still waiting for feedback… |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still waiting for feedback… |
@Bouke can you please rebase the branch on the latest master? |
b6e59f9
to
8397bb9
Compare
@msallin sure, I just did. |
@skolima fine with this? Then I will merge it. |
@msallin I'm offline for the night, I'll have a look tomorrow, if that's ok. I have free time tomorrow. |
Sure! Enjoy! |
I'm only concerned how this interacts with #311 and #466 . NuKeeper should currently skip unversioned packages (yes, I know those went away now, but the tag without a version is still valid, even if unwise) and should skip packages with ranges specified (also not a particularly good idea when using any automated dependency upgrader, but hey). I realise both of those are quite niche corner cases, but I'm still not keen on breaking them. I haven't re-tested those interactions yet. |
@skolima Are there any unit tests covering those cases? Conceptually I expect a missing package to be something different from an unversioned package. So we should be able to tell the two apart and only throw in the first case. |
@skolima I'm getting the impression my contributions are in vain. It's been open for close to 2 years now. On this PR but also various bugs the only interactions are me fighting with the stale bot to keep them open. I've already rebased this PR a few times on the master branch, only to see it linger further. |
✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)
feature
Missing packages are silently ignored when inspecting:
🆕 What is the new behavior (if this is a feature change)?
An error is returned if there were missing packages during inspection.
💥 Does this PR introduce a breaking change?
Yes / no.
inspect
would silently ignore the problem. Howeverupdate
would fail, as a Nuget restore would also fail for missing packages. I think this is desirable, asinspect
should handle situations where packages are missing.🐛 Recommendations for testing
Add a non-existing package reference.
📝 Links to relevant issues/docs
🤔 Checklist before submitting