func CheckForUpdates()

in internal/updatecheck.go [22:39]


func CheckForUpdates(
	ctx context.Context,
	debugLog *log.Logger,
	g ContainerAPIMetadataGetter,
	inUse Semver,
) {
	available, err := getLatestLightsailctlVersion(ctx, g)
	if err != nil {
		debugLog.Print(err.Error())
		return
	}

	if inUse.Less(available) {
		log.Printf(`WARNING: You are using lightsailctl %s, but %s is available.
To download, visit https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-install-software`,
			inUse, available)
	}
}