Hello team, When can we get auto update for npm cl...
# general
f
Hello team, When can we get auto update for npm cli package? https://www.npmjs.com/package/@infisical/cli it is locked to 0.43.40 while 0.43.57 is available. There's a fix I need to use. Btw: if windows user install using npm, they can see the notification:
To update, run: scoop update infisical
Which is wrong. Is that expected? Thank you guys!
p
the issue already raised about a month ago https://github.com/Infisical/cli/issues/112 someone there put a workaround in case you need in the meantime (might need adapt to windows) as for the update instruction, the current code in https://github.com/Infisical/cli/blob/main/packages/util/check-for-update.go seems hardcoded this as
Copy code
func GetUpdateInstructions() string {
	os := runtime.GOOS
	switch os {
	case "darwin":
		return "To update, run: brew update && brew upgrade infisical"
	case "windows":
		return "To update, run: scoop update infisical"
	case "linux":
		pkgManager := getLinuxPackageManager()
		switch pkgManager {
		case "apt-get":
			return "To update, run: sudo apt-get update && sudo apt-get install infisical"
		case "yum":
			return "To update, run: sudo yum update infisical"
		case "apk":
			return "To update, run: sudo apk update && sudo apk upgrade infisical"
		case "yay":
			return "To update, run: yay -Syu infisical"
		default:
			return ""
		}
	default:
		return ""
	}
}
so every windows installation will have this instruction
👍 1
f
Alright, got it thanks! Seems like they switched to OICD, any clue why this isn't implemented yet (1 motnh later)? Will wait anyway 😕