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

Dev #42

Merged
merged 2 commits into from
Jun 11, 2024
Merged

Dev #42

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed issue undefined Show-JobProgress
During Update-WinGetEssentials, the module is removed and reloaded to apply
the latest version of the upgrade logic, however this does not import WinGet-Utils.psm1.
This resulted in the checkpoint and sync steps to encounter and error with Show-JobProgress
causing these minor steps to be skipped. This behavior is a bit odd and probably needs
further investigation and perhaps a reworked solution.
jjcarrier committed Jun 11, 2024
commit 9937ffe1a153a093b030b72951781ecc111e249c
1 change: 1 addition & 0 deletions WinGet-Essentials/modules/WinGet-Update.psm1
Original file line number Diff line number Diff line change
@@ -207,6 +207,7 @@ function Update-WinGetEssentials
$newest = @(Get-Module WinGet-Essentials -ListAvailable)[0]
Write-Output "- Updated Version: $($newest.Version)"
Import-Module WinGet-Essentials -RequiredVersion $newest.Version
Import-Module "$PSScriptRoot/WinGet-Utils.psm1"

if (-not($Force) -and ($current.Version -eq $newest.Version)) {
Write-Output "No new version detected."