From bc22f7d43c12c5f79c71b0319666e71f29d61322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Mon, 25 May 2020 18:53:04 +0200 Subject: [PATCH] Disable self-update. Based on a Fedora patch by Elliott Sales de Andrade. --- cli/cli.go | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 4312eb0..5f62297 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -10,13 +10,10 @@ import ( "io" "io/ioutil" "net/http" - "runtime" "strings" "time" "github.com/blang/semver" - "github.com/exercism/cli/debug" - update "github.com/inconshreveable/go-update" ) var ( @@ -95,46 +92,7 @@ func (c *CLI) IsUpToDate() (bool, error) { // Upgrade allows the user to upgrade to the latest version of the CLI. func (c *CLI) Upgrade() error { - var ( - OS = osMap[runtime.GOOS] - ARCH = archMap[runtime.GOARCH] - ) - - if OS == "" || ARCH == "" { - return fmt.Errorf("unable to upgrade: OS %s ARCH %s", OS, ARCH) - } - - buildName := fmt.Sprintf("%s-%s", OS, ARCH) - if BuildARCH == "arm" { - if BuildARM == "" { - return fmt.Errorf("unable to upgrade: arm version not found") - } - buildName = fmt.Sprintf("%s-v%s", buildName, BuildARM) - } - - var downloadRC *bytes.Reader - for _, a := range c.LatestRelease.Assets { - if strings.Contains(a.Name, buildName) { - debug.Printf("Downloading %s\n", a.Name) - var err error - downloadRC, err = a.download() - if err != nil { - return fmt.Errorf("error downloading executable: %s", err) - } - break - } - } - if downloadRC == nil { - return fmt.Errorf("no executable found for %s/%s%s", BuildOS, BuildARCH, BuildARM) - } - - bin, err := extractBinary(downloadRC, OS) - if err != nil { - return err - } - defer bin.Close() - - return update.Apply(bin, update.Options{}) + return fmt.Errorf("Please use Guix to update Exercism") } func (c *CLI) fetchLatestRelease() error { -- 2.26.2 'q' value=''/>
path: root/gnu/packages/display-managers.scm
AgeCommit message (Expand)Author
2018-07-25Merge remote-tracking branch 'origin/master' into qt-updatesEfraim Flashner
2018-07-24Revert "gnu: sddm: Fix CMake build."...This reverts commit 8674abb1dda0278f81b5965985e6b78497aab386. This is no longer necessary after the upgrade to Qt-5.11.1. Efraim Flashner
2018-07-24gnu: lightdm: Take 'nologin' from the 'shadow' package....Reported by brendarn on #guix. * gnu/packages/display-managers.scm (lightdm)[inputs]: Use SHADOW instead of UTIL-LINUX. Ludovic Courtès
2018-07-22gnu: sddm: Update to 0.18.0....* gnu/packages/display-managers.scm (sddm): Update to 0.18.0. * gnu/packages/patches/sddm-fix-build-with-qt-5.11-1024.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it. Signed-off-by: Marius Bakke <mbakke@fastmail.com> Stefan Stefanović
2018-06-01gnu: sddm: Fix CMake build....* gnu/packages/display-managers.scm (sddm): Fix CMake build. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/patches/sddm-fix-build-with-qt-5.11-1024.patch: New file. Signed-off-by: Rutger Helling <rhelling@mykolab.com> Stefan Stefanović
2018-01-16gnu: lightdm: Update to 1.24.0....* gnu/packages/display-managers.scm (lightdm): Update to 1.24.0. Leo Famulari
2017-12-07gnu: sddm: Remove obsolete workaround....* gnu/packages/display-managers.scm (sddm)[arguments]: Remove obsolete 'fix-qml-include' phase. Marius Bakke
2017-12-07gnu: sddm: Update to 0.17.0....* gnu/packages/display-managers.scm (sddm): Update to 0.17.0 [arguments]: Clean up comments. Tobias Geerinckx-Rice