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
Show warnings for referenced packages that are out of date #2261
Comments
Not sure if I agree that this functionality should be present on every execution as it will have significant impact on wxecution time. Checking each package will result in a fair amount of HTTP requests. Instead I suggest implementing this feature as a separate command. The command should also support updating the versions. |
@mholo65 If the HTTP requests are sent asynchronously and the results are only shown after the script is finished executing, and canceled if the script finishes first, the wall time shouldn't be any shorter for the entire execution. |
(Does the NuGet protocol have a single-roundtrip way to check for package updates?) |
Async could be nice, however quickly thinking it through it feels like it would require some breaking changes which then could have impact on some modules, etc. Speaking if modules, this functionality should be implemented in a way that it’s opt-in for other modules to implement (e.g. Choco, Paket, Apt-Get etc.) Back to NuGet (which is the only module maintained by Cake core), glad you asked about NuGet V3 protocol (which is implemented using JSON-LD) 😄 Simple answer, no there isn’t a quick way to check if package is outdated. From the top of my head, here’s how it goes:
Just look at that amount of JSON and take a moment to reflect over why NuGet is slow 😄 Fortunately, we don’t need to implement the protocol as we can rely on the NuGet Client libraries. |
When you pin package versions, there's nothing to remind you when package updates are available. If there was a warning shown at the end of each script execution, it would provide awareness to folks who aren't thinking about loading up their various packages' websites to check manually.
Similar to #2260, so I'll copy this part:
The text was updated successfully, but these errors were encountered: