From d89418803e0c2c0033861d5b4b94da9a116ba7ac Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Sat, 12 Jul 2025 04:31:56 +0800 Subject: [PATCH] misc: update CLI latest version check --- cli/packages/util/check-for-update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/packages/util/check-for-update.go b/cli/packages/util/check-for-update.go index 4aae75f65..a1e35f656 100644 --- a/cli/packages/util/check-for-update.go +++ b/cli/packages/util/check-for-update.go @@ -20,7 +20,7 @@ func CheckForUpdate() { if checkEnv := os.Getenv("INFISICAL_DISABLE_UPDATE_CHECK"); checkEnv != "" { return } - latestVersion, _, err := getLatestTag("Infisical", "infisical") + latestVersion, _, err := getLatestTag("Infisical", "cli") if err != nil { log.Debug().Err(err) // do nothing and continue @@ -98,7 +98,7 @@ func getLatestTag(repoOwner string, repoName string) (string, string, error) { return "", "", fmt.Errorf("failed to unmarshal github response: %w", err) } - tag_prefix := "infisical-cli/v" + tag_prefix := "v" // Extract the version from the first valid tag version := strings.TrimPrefix(releaseDetails.TagName, tag_prefix)