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

Add automatic daily update checking #185

Merged
merged 2 commits into from
May 30, 2020

Conversation

HowardWolosky
Copy link
Member

The module will now check daily with PowerShellGallery to see if there
is a newer version of the module available. This check can be disabled
with the new DisableUpdateCheck config property.

The check happens asynchronously. The web request is kicked off when
the module is loaded, but the result is only checked when the user
runs a command.

The result is logged at the Verbose level in any failure case as well
as when the module is up-to-date. When there is a newer version
available, it will write the message out as a Warning. The web request
will only run once per day, and the user message will only be written
once per day as well.

The module will now check daily with PowerShellGallery to see if there
is a newer version of the module available.  This check can be disabled
with the new `DisableUpdateCheck` config property.

The check happens asynchronously.  The web request is kicked off when
the module is loaded, but the result is only checked when the user
runs a command.

The result is logged at the Verbose level in any failure case as well
as when the module is up-to-date.  When there is a newer version
available, it will write the message out as a Warning.  The web request
will only run once per day, and the user message will only be written
once per day as well.
@HowardWolosky HowardWolosky added the enhancement An issue or pull request introducing new functionality to the project. label May 30, 2020
@HowardWolosky HowardWolosky merged commit a9f48a8 into microsoft:master May 30, 2020
@HowardWolosky HowardWolosky deleted the checkUpdate branch May 30, 2020 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An issue or pull request introducing new functionality to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant