From 3e4643e969640dc9de10b00c7f0639f9ee066491 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sun, 10 Feb 2019 00:58:28 -0500 Subject: [PATCH] Disable self-update. Signed-off-by: Elliott Sales de Andrade --- cli/cli.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 29f6d64..2e0ff74 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -16,7 +16,6 @@ import ( "github.com/blang/semver" "github.com/exercism/cli/debug" - update "github.com/inconshreveable/go-update" ) var ( @@ -131,7 +130,7 @@ func (c *CLI) Upgrade() error { } defer bin.Close() - return update.Apply(bin, update.Options{}) + return fmt.Errorf("Use dnf to update Fedora-packaged exercism") } func (c *CLI) fetchLatestRelease() error { -- 2.21.0