Skip to content

Commit 7f31e65

Browse files
Copilotaooohan
andauthored
fix: vfox upgrade unable to detect current version (#556)
* Initial plan * Fix vfox upgrade command to correctly detect current version Co-authored-by: aooohan <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: aooohan <[email protected]>
1 parent 2e5db6c commit 7f31e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/commands/upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func upgradeCmd(ctx context.Context, cmd *cli.Command) error {
116116
defer manager.Close()
117117
httpClient := manager.HttpClient()
118118

119-
currVersion := fmt.Sprintf("v%s", cmd.Version)
119+
currVersion := fmt.Sprintf("v%s", internal.RuntimeVersion)
120120
latestVersion, err := fetchLatestVersion(httpClient)
121121
if err != nil {
122122
return cli.Exit("Failed to fetch the latest version: "+err.Error(), 1)

0 commit comments

Comments
 (0)