Merge pull request #244494 from gmemstr/flyctl-0.1.62

flyctl: update to 0.1.62, disable autoupdate
This commit is contained in:
Stanisław Pitucha 2023-07-23 23:26:36 +10:00 committed by GitHub
commit 88fc4998ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 3 deletions

View file

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "flyctl";
version = "0.1.56";
version = "0.1.62";
src = fetchFromGitHub {
owner = "superfly";
repo = "flyctl";
rev = "v${version}";
hash = "sha256-Megf4kQ17rwvHKlREzEw7YIibtl/wol0U5bVvPuwxxI=";
hash = "sha256-/IIHe3OG/r/cZ4PaYZazv/aPBzyxNBCWbgkzFbJMpvc=";
};
vendorHash = "sha256-EI1cyLCiUEkit80gh0BV6Ti8CX8KYuIqz2od7LDLTXg=";
vendorHash = "sha256-bjlNwhhhvwrw5GtWO8+1HV2IauqexKSb+O9WGX06qGA=";
subPackages = [ "." ];
@ -25,6 +25,8 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
patches = [ ./disable-auto-update.patch ];
preBuild = ''
go generate ./...
'';

View file

@ -0,0 +1,25 @@
From 9c76dbff982b0fd8beaffae42a6e98bc1e67f089 Mon Sep 17 00:00:00 2001
From: Gabriel Simmer <g@gmem.ca>
Date: Fri, 21 Jul 2023 08:16:52 +0100
Subject: [PATCH] Disable auto update
---
internal/config/config.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal/config/config.go b/internal/config/config.go
index 1914f8e0..958baf27 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -141,7 +141,7 @@ func (cfg *Config) ApplyFile(path string) (err error) {
AutoUpdate bool `yaml:"auto_update"`
}
w.SendMetrics = true
- w.AutoUpdate = true
+ w.AutoUpdate = false
if err = unmarshal(path, &w); err == nil {
cfg.AccessToken = w.AccessToken
--
2.41.0