Skip to content

Commit

Permalink
Disable update for windows for the time being
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Sep 29, 2023
1 parent 8f02858 commit f40de71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Arkade can be used to install Kubernetes apps or to download CLI tools.
* `arkade install` - install a Kubernetes app
* `arkade info` - see the post installation screen for a Kubernetes app
* `arkade get` - download a CLI tool
* `arkade update` - update arkade itself
* `arkade update` - perform a self-update of arkade on MacOS and Linux

An arkade "app" could represent a helm chart such as `openfaas/faas-netes`, a custom CLI installer such as `istioctl` or a set of static manifests (i.e. MetalLB).

Expand Down
5 changes: 5 additions & 0 deletions cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package cmd

import (
"fmt"
"runtime"
"strings"

"github.com/alexellis/arkade/pkg"
Expand Down Expand Up @@ -40,6 +41,10 @@ version twice.`,

command.RunE = func(cmd *cobra.Command, args []string) error {

if runtime.GOOS == "windows" {
return fmt.Errorf("update is not supported on Windows at this time")
}

verifyDigest, _ := cmd.Flags().GetBool("verify")
forceDownload, _ := cmd.Flags().GetBool("force")

Expand Down

0 comments on commit f40de71

Please sign in to comment.