cake-build/cake

Show warning when Cake is out of date

Open

#2.260 geöffnet am 30. Aug. 2018

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (738 Forks)batch import
Help wantedUp-for-grabs

Repository-Metriken

Stars
 (3.742 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 1h) (25 gemergte PRs in 30 T)

Beschreibung

When you pin the Cake version which is a recommended practice, there's nothing to remind you when it is out of date. I've seen this result in folks working within the constraints of old versions of Cake without realizing there is new goodness 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 the Cake website to check manually. Cake scripts in active projects would be less likely to stay behind at very old versions of Cake.

Could a warning be too strong? Information might be a better fit except that it might fail in its purpose of drawing attention during a normal script execution. On the other hand, there's occasionally a CVE associated with a new update.

Since the update check isn't mission-critical, it could be started asynchronously before compiling the script. If there is no network connectivity, the check can time out silently or be canceled silently when the script execution is finished.

There should be a configuration setting for folks to opt out.

Contributor Guide