You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(#138): resolve information source mismatch in update reporting
- Update `% nova update` to accurately report the current `PSGallery` lookup candidate.
- Modify self-update plan functions to preserve lookup candidate and repository information.
- Enhance no-update output to reflect the latest update candidate instead of falsely claiming the installed version is the newest.
if (-not [string]::IsNullOrWhiteSpace($Result.LookupCandidateVersion) -and-not [string]::IsNullOrWhiteSpace($Result.LookupRepository)) {
58
+
return"Installed: $($Result.ModuleName)$($Result.CurrentVersion). $($Result.LookupRepository) currently reports $($Result.LookupCandidateVersion) as the latest update candidate checked."
59
+
}
60
+
61
+
if (-not [string]::IsNullOrWhiteSpace($Result.LookupCandidateVersion)) {
62
+
return"Installed: $($Result.ModuleName)$($Result.CurrentVersion). The current update lookup reports $($Result.LookupCandidateVersion) as the latest candidate checked."
63
+
}
64
+
65
+
return"Installed: $($Result.ModuleName)$($Result.CurrentVersion). No update candidate is currently available from the configured update source."
66
+
}
67
+
53
68
functionFormat-NovaCliCommandResult {
54
69
[CmdletBinding()]
55
70
param(
@@ -59,8 +74,8 @@ function Format-NovaCliCommandResult {
59
74
60
75
if (Test-NovaCliNoUpdateResult-Command $Command-Result $Result) {
61
76
return@(
62
-
"You're up to date!"
63
-
"$($Result.ModuleName)$($Result.CurrentVersion) is currently the newest version available."
0 commit comments