From unknown Fri Jun 20 07:20:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58408 <58408@debbugs.gnu.org> To: bug#58408 <58408@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add doctl. Reply-To: bug#58408 <58408@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:20:15 +0000 retitle 58408 [PATCH] gnu: Add doctl. reassign 58408 guix-patches submitter 58408 Matthew James Kraai severity 58408 normal tag 58408 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 05:55:17 2022 Received: (at submit) by debbugs.gnu.org; 10 Oct 2022 09:55:17 +0000 Received: from localhost ([127.0.0.1]:46143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohpVE-00050U-Vh for submit@debbugs.gnu.org; Mon, 10 Oct 2022 05:55:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:40014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohpVD-00050M-9c for submit@debbugs.gnu.org; Mon, 10 Oct 2022 05:55:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohpV6-0002tf-0f for guix-patches@gnu.org; Mon, 10 Oct 2022 05:55:11 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:28156 helo=aws.ftbfs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohpV4-0007eG-7q for guix-patches@gnu.org; Mon, 10 Oct 2022 05:55:07 -0400 Received: from ip68-4-255-43.oc.oc.cox.net ([68.4.255.43] helo=carlo.lan) by aws.ftbfs.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ohpUy-0005kp-B3; Mon, 10 Oct 2022 09:55:00 +0000 From: Matthew James Kraai To: guix-patches@gnu.org Subject: [PATCH] gnu: Add doctl. Date: Mon, 10 Oct 2022 02:54:56 -0700 Message-Id: <20221010095456.23196-1-kraai@ftbfs.org> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No (score -2.9): Spam detection software, running on the system "aws.ftbfs.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: * gnu/packages/doctl.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 2 ++ gnu/packages/digitalocean.scm | 58 +++++++++++++++++++++++++++++++++++ 2 files changed, 60 inse [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Received-SPF: pass client-ip=52.8.68.13; envelope-from=kraai@ftbfs.org; helo=aws.ftbfs.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Matthew James Kraai X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/packages/doctl.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 2 ++ gnu/packages/digitalocean.scm | 58 +++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 gnu/packages/digitalocean.scm diff --git a/gnu/local.mk b/gnu/local.mk index a013647d7e..c7423818b9 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -55,6 +55,7 @@ # Copyright © 2022 Hilton Chain # Copyright © 2022 Alex Griffin # Copyright © 2022 ( +# Copyright © 2022 Matthew James Kraai # # This file is part of GNU Guix. # @@ -206,6 +207,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/dictionaries.scm \ %D%/packages/diffoscope.scm \ %D%/packages/digest.scm \ + %D%/packages/digitalocean.scm \ %D%/packages/direct-connect.scm \ %D%/packages/disk.scm \ %D%/packages/distributed.scm \ diff --git a/gnu/packages/digitalocean.scm b/gnu/packages/digitalocean.scm new file mode 100644 index 0000000000..f091a1eeb6 --- /dev/null +++ b/gnu/packages/digitalocean.scm @@ -0,0 +1,58 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Matthew James Kraai +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages digitalocean) + #:use-module ((srfi srfi-1) #:hide (zip)) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (gnu packages golang) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system go)) + +(define-public doctl + (package + (name "doctl") + (version "1.83.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/digitalocean/doctl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1narjmj3npd39gxi42k3h4zjyiaq5lvjv31vaxw8slf9h9sjhjh9")))) + (build-system go-build-system) + (arguments + `(#:build-flags '(,(string-append "-ldflags=-X github.com/digitalocean/doctl.Label=release" + " -X github.com/digitalocean/doctl.Major=" + (first (string-split version #\.)) + " -X github.com/digitalocean/doctl.Minor=" + (second (string-split version #\.)) + " -X github.com/digitalocean/doctl.Patch=" + (third (string-split version #\.)))) + #:go ,go-1.19 + #:import-path "github.com/digitalocean/doctl/cmd/doctl" + #:install-source? #f + #:unpack-path "github.com/digitalocean/doctl")) + (synopsis "Command line client for DigitalOcean") + (description + "doctl provides a unified command line interface to the DigitalOcean API.") + (home-page "https://github.com/digitalocean/doctl") + (license license:asl2.0))) -- 2.38.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 07:02:39 2022 Received: (at 58408) by debbugs.gnu.org; 10 Oct 2022 11:02:39 +0000 Received: from localhost ([127.0.0.1]:46233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohqYR-0006uq-6U for submit@debbugs.gnu.org; Mon, 10 Oct 2022 07:02:39 -0400 Received: from knopi.disroot.org ([178.21.23.139]:36326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohqYP-0006uh-6n for 58408@debbugs.gnu.org; Mon, 10 Oct 2022 07:02:37 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 81C644CAD5; Mon, 10 Oct 2022 13:02:35 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id h4SXK-CVN7Nc; Mon, 10 Oct 2022 13:02:34 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665399718; bh=gHUHEC9eZQsrKyLVD4K03mqIJmK/UEomqk6/F2ERbNQ=; h=Date:Subject:From:To:References:In-Reply-To; b=QIs8FG7wsS/yKaKWbnsT2nSsmRSBT0R2Td8g01HRXvQkfVqr2uV7o0vdbbEiGXe49 5dykp6v+1GRsFCPL1/MKDK3/bwdf24Od838wB+nLrG5bi7kQ94+7SCgHOg2yUemkO5 gwphhOipWuTwY+KqC38H1/C0iLbPY4D1JSIjpAnPJ/ZknUB4FWo8ksn1+eS5dJ1lDM XjJVm2KHdXkjvbxJoGEwLOJijUOpQcAxYj3PJ+D7N3lWuq1qmpa+B6FpyvxgzlJp2y abn/Dvrh+QxHFwnyrr9tJ6B7bUZOuUDqYwghBboxcLsXRlyFpu25k+4IOuUPOeuAhF m62OzMikQwOWA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 10 Oct 2022 12:01:58 +0100 Message-Id: Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. From: "(" To: "Matthew James Kraai" , <58408@debbugs.gnu.org> References: <20221010095456.23196-1-kraai@ftbfs.org> In-Reply-To: <20221010095456.23196-1-kraai@ftbfs.org> X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hey Matthew, On Mon Oct 10, 2022 at 10:54 AM BST, Matthew James Kraai wrote: > * gnu/packages/doctl.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. You sure there's no better place to put it than a new file? Maybe ``gnu/packages/admin.scm''? Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 FROM_ONE_CHAR Bogus FROM name -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 58408 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Hey Matthew, On Mon Oct 10, 2022 at 10:54 AM BST, Matthew James Kraai wrote: > * gnu/packages/doctl.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. You sure there's no better place to put it than a new file? Maybe ``gnu/packages/admin.scm''? > + #:use-module (guix download) Since you're using git-fetch, you shouldn't need this module, right? > + (arguments > + `(#:build-flags '(,(string-append "-ldflags=3D-X github.com/digital= ocean/doctl.Label=3Drelease" > + " -X github.com/digitalocean/doct= l.Major=3D" > + (first (string-split version #\.)= ) > + " -X github.com/digitalocean/doct= l.Minor=3D" > + (second (string-split version #\.= )) > + " -X github.com/digitalocean/doct= l.Patch=3D" > + (third (string-split version #\.)= ))) So, this whole thing would be better formatted with "new style" arguments (using ``list'' and gexps). Like this: (arguments (list #:build-flags #~(list (string-append ...)) #| et cetera |#)) This would also allow you to remove the unquote in ``,go-1.19''. Note that = only ``#:build-flags'' needs the gexp ``#~'' in this arguments list. > + #:go ,go-1.19 Might be best to put this above build-flags. > + #:import-path "github.com/digitalocean/doctl/cmd/doctl" The import-path is usually at the top of the arguments list. > + #:unpack-path "github.com/digitalocean/doctl")) And the unpack-path is usually directly after the import-path. > + (description > + "doctl provides a unified command line interface to the DigitalOcea= n API.") Change ``doctl'' to ``@code{doctl}''. -- ( From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 09:20:12 2022 Received: (at 58408) by debbugs.gnu.org; 10 Oct 2022 13:20:12 +0000 Received: from localhost ([127.0.0.1]:46404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohshY-00044o-8s for submit@debbugs.gnu.org; Mon, 10 Oct 2022 09:20:12 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:33466 helo=aws.ftbfs.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohshV-00044b-32 for 58408@debbugs.gnu.org; Mon, 10 Oct 2022 09:20:10 -0400 Received: from ip68-4-255-43.oc.oc.cox.net ([68.4.255.43] helo=carlo) by aws.ftbfs.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ohshO-00066g-12; Mon, 10 Oct 2022 13:20:02 +0000 Date: Mon, 10 Oct 2022 06:20:00 -0700 From: Matthew James Kraai To: "(" Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. Message-ID: References: <20221010095456.23196-1-kraai@ftbfs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No (score -2.9): Spam detection software, running on the system "aws.ftbfs.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hi, On Mon, Oct 10, 2022 at 12:01:58PM +0100, ( wrote: > Hey Matthew, > > On Mon Oct 10, 2022 at 10:54 AM BST, Matthew James Kraai wrote: > > * gnu/packages/doctl.scm: New file. > > * gnu/local.mk (GNU_SY [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58408 Cc: 58408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Mon, Oct 10, 2022 at 12:01:58PM +0100, ( wrote: > Hey Matthew, > > On Mon Oct 10, 2022 at 10:54 AM BST, Matthew James Kraai wrote: > > * gnu/packages/doctl.scm: New file. > > * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. > > You sure there's no better place to put it than a new file? Maybe > ``gnu/packages/admin.scm''? > > > + #:use-module (guix download) > > Since you're using git-fetch, you shouldn't need this module, right? > > > + (arguments > > + `(#:build-flags '(,(string-append "-ldflags=-X github.com/digitalocean/doctl.Label=release" > > + " -X github.com/digitalocean/doctl.Major=" > > + (first (string-split version #\.)) > > + " -X github.com/digitalocean/doctl.Minor=" > > + (second (string-split version #\.)) > > + " -X github.com/digitalocean/doctl.Patch=" > > + (third (string-split version #\.)))) > > So, this whole thing would be better formatted with "new style" arguments > (using ``list'' and gexps). Like this: > > (arguments > (list #:build-flags > #~(list (string-append ...)) > #| et cetera |#)) > > This would also allow you to remove the unquote in ``,go-1.19''. Note that only > ``#:build-flags'' needs the gexp ``#~'' in this arguments list. > > > + #:go ,go-1.19 > > Might be best to put this above build-flags. > > > + #:import-path "github.com/digitalocean/doctl/cmd/doctl" > > The import-path is usually at the top of the arguments list. > > > + #:unpack-path "github.com/digitalocean/doctl")) > > And the unpack-path is usually directly after the import-path. > > > + (description > > + "doctl provides a unified command line interface to the DigitalOcean API.") > > Change ``doctl'' to ``@code{doctl}''. > > -- ( Thank you for all of the suggestions. How about the following patch instead? -- Matt >From f31936b941b1db1a4dfe8e07270ef4b004c33c54 Mon Sep 17 00:00:00 2001 From: Matthew James Kraai Date: Sun, 9 Oct 2022 05:07:23 -0700 Subject: [PATCH] gnu: Add doctl. * gnu/packages/admin.scm (doctl): New variable. --- gnu/packages/admin.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 13d582403b..be80713f52 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2022 Andreas Rammhold ;;; Copyright © 2022 ( +;;; Copyright © 2022 Matthew James Kraai ;;; ;;; This file is part of GNU Guix. ;;; @@ -5596,3 +5597,36 @@ (define-public rex several hosts in succession or in parallel. It can also be used to copy a file or files to several hosts.") (license license:gpl3+))) + +(define-public doctl + (package + (name "doctl") + (version "1.83.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/digitalocean/doctl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1narjmj3npd39gxi42k3h4zjyiaq5lvjv31vaxw8slf9h9sjhjh9")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/digitalocean/doctl/cmd/doctl" + #:unpack-path "github.com/digitalocean/doctl" + #:go go-1.19 + #:build-flags + #~(list (string-append "-ldflags=-X github.com/digitalocean/doctl.Label=release" + " -X github.com/digitalocean/doctl.Major=" + (car (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Minor=" + (cadr (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Patch=" + (caddr (string-split #$version #\.)))) + #:install-source? #f)) + (synopsis "Command line client for DigitalOcean") + (description + "@code{doctl} provides a unified command line interface to the DigitalOcean API.") + (home-page "https://github.com/digitalocean/doctl") + (license license:asl2.0))) -- 2.38.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 11:21:43 2022 Received: (at 58408) by debbugs.gnu.org; 10 Oct 2022 15:21:43 +0000 Received: from localhost ([127.0.0.1]:49569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohub9-000825-7f for submit@debbugs.gnu.org; Mon, 10 Oct 2022 11:21:43 -0400 Received: from knopi.disroot.org ([178.21.23.139]:52206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohub7-00081w-ES for 58408@debbugs.gnu.org; Mon, 10 Oct 2022 11:21:42 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id F23524BB70; Mon, 10 Oct 2022 17:21:39 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PP4vlYOFmCTX; Mon, 10 Oct 2022 17:21:38 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665415293; bh=O2dIo1+HxWyDQV0xqqzKPvbjdSX1YpluJ291kGKZRWE=; h=Date:Cc:Subject:From:To:References:In-Reply-To; b=NJdWTt+ooGZD/uFZLWeLTqmUSQ538R4a2FHjhNRnPVO6zb8tVypyf3NcuWOOj6Hwf 7jOHGP7KPjZOptR/VHFQDAarQQ3qanQ8P/fjQfeJhsIwmBzoZ+ZCQUlJS3NIjvMgQ5 GS+MgaaZv4Vtl1mkYPpyZRT0xuaPR3bHz/vL3QLbJwD56QWEfFJcFMy1HEQowuZA8C SbKPTqciEF/3JznOnI1Y0zpNoGY89AjHh1Dwt6k+AKIn4ppChEnY40TB+ur/Ia3JU+ GXU9JnaDUcHQdpQgEOLNjldJopRZ73yfgZz9IzSkPM1kKpP/9MCKtPRx8eUgNB3myB 8/2Ofbs2rUO1g== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 10 Oct 2022 16:21:33 +0100 Message-Id: Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. From: "(" To: "Matthew James Kraai" References: <20221010095456.23196-1-kraai@ftbfs.org> In-Reply-To: X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hey, Mostly LGTM, but it looks like I forgot something: On Mon Oct 10, 2022 at 2:20 PM BST, Matthew James Kraai wrote: > + (home-page "https://github.com/digitalocean/doctl") Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 FROM_ONE_CHAR Bogus FROM name -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 58408 Cc: 58408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Hey, Mostly LGTM, but it looks like I forgot something: On Mon Oct 10, 2022 at 2:20 PM BST, Matthew James Kraai wrote: > + (home-page "https://github.com/digitalocean/doctl") ``home-page'' is generally put before ``synopsis''. -- ( From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 09:37:01 2022 Received: (at 58408) by debbugs.gnu.org; 11 Oct 2022 13:37:01 +0000 Received: from localhost ([127.0.0.1]:51423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiFRM-0002uV-Ib for submit@debbugs.gnu.org; Tue, 11 Oct 2022 09:37:01 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:53118 helo=aws.ftbfs.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiFRK-0002uI-3j for 58408@debbugs.gnu.org; Tue, 11 Oct 2022 09:37:00 -0400 Received: from ip68-4-255-43.oc.oc.cox.net ([68.4.255.43] helo=carlo) by aws.ftbfs.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oiFRD-00088x-6E; Tue, 11 Oct 2022 13:36:51 +0000 Date: Tue, 11 Oct 2022 06:36:49 -0700 From: Matthew James Kraai To: "(" Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. Message-ID: References: <20221010095456.23196-1-kraai@ftbfs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No (score -2.9): Spam detection software, running on the system "aws.ftbfs.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hi, On Mon, Oct 10, 2022 at 04:21:33PM +0100, ( wrote: > Mostly LGTM, but it looks like I forgot something: > > On Mon Oct 10, 2022 at 2:20 PM BST, Matthew James Kraai wrote: > > + (home-page "https://git [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58408 Cc: 58408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Mon, Oct 10, 2022 at 04:21:33PM +0100, ( wrote: > Mostly LGTM, but it looks like I forgot something: > > On Mon Oct 10, 2022 at 2:20 PM BST, Matthew James Kraai wrote: > > + (home-page "https://github.com/digitalocean/doctl") > > ``home-page'' is generally put before ``synopsis''. Thanks again. How about the following patch? -- Matt >From 1e60a3b717e8b641217f2b9d6f2cad71faa24418 Mon Sep 17 00:00:00 2001 From: Matthew James Kraai Date: Sun, 9 Oct 2022 05:07:23 -0700 Subject: [PATCH] gnu: Add doctl. * gnu/packages/admin.scm (doctl): New variable. --- gnu/packages/admin.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 13d582403b..2e3395052c 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2022 Andreas Rammhold ;;; Copyright © 2022 ( +;;; Copyright © 2022 Matthew James Kraai ;;; ;;; This file is part of GNU Guix. ;;; @@ -5596,3 +5597,36 @@ (define-public rex several hosts in succession or in parallel. It can also be used to copy a file or files to several hosts.") (license license:gpl3+))) + +(define-public doctl + (package + (name "doctl") + (version "1.83.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/digitalocean/doctl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1narjmj3npd39gxi42k3h4zjyiaq5lvjv31vaxw8slf9h9sjhjh9")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/digitalocean/doctl/cmd/doctl" + #:unpack-path "github.com/digitalocean/doctl" + #:go go-1.19 + #:build-flags + #~(list (string-append "-ldflags=-X github.com/digitalocean/doctl.Label=release" + " -X github.com/digitalocean/doctl.Major=" + (car (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Minor=" + (cadr (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Patch=" + (caddr (string-split #$version #\.)))) + #:install-source? #f)) + (home-page "https://github.com/digitalocean/doctl") + (synopsis "Command line client for DigitalOcean") + (description + "@code{doctl} provides a unified command line interface to the DigitalOcean API.") + (license license:asl2.0))) -- 2.38.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 09:44:44 2022 Received: (at 58408) by debbugs.gnu.org; 11 Oct 2022 13:44:45 +0000 Received: from localhost ([127.0.0.1]:51443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiFYq-000376-Ll for submit@debbugs.gnu.org; Tue, 11 Oct 2022 09:44:44 -0400 Received: from knopi.disroot.org ([178.21.23.139]:53020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiFYp-00036w-2B for 58408@debbugs.gnu.org; Tue, 11 Oct 2022 09:44:44 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 85CA54C692; Tue, 11 Oct 2022 15:44:41 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id TjhstDcaaOpZ; Tue, 11 Oct 2022 15:44:40 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665495689; bh=+5tNE4vsuurO+Yy3Fly7mXdLgi6nGkKvMxsf3OvYE9g=; h=Date:Cc:Subject:From:To:References:In-Reply-To; b=YU5SKNfReugQrAblP4fpAqgJj0uWQpwg88shCT1XcxokynHPtdkJBPEyq+yIZz3a6 2IFHuYt/4Sc4gHkmHr87rrbwTNJFeb0qDcgLTDz1DEEn6P0h7GF0KXaKBIokV9fmRT bQ6lR43uyhcHdzku1e3pQ5tDHzJjaVNEFxSFfoWf9fusAz3l5KhRSKFrs0bQTgCzWr qpmQ9iC00QAGWWYiuthY5yzDS9mxENyavXnsQzuOsUoX18cK+urAasxAnyMI+HvhH1 Q0/rTDP7ZmSERcTVOM0DHEmC2p2Xtj9QDzHv+MSlKx+l2bcQcQKg+A6CdCanudGWKY PbeDCVcqCFVQQ== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 11 Oct 2022 14:41:28 +0100 Message-Id: Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. From: "(" To: "Matthew James Kraai" References: <20221010095456.23196-1-kraai@ftbfs.org> In-Reply-To: X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: LGTM! :D -- ( Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 FROM_ONE_CHAR Bogus FROM name -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 58408 Cc: 58408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) LGTM! :D -- ( From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 09:08:20 2022 Received: (at 58408) by debbugs.gnu.org; 12 Oct 2022 13:08:20 +0000 Received: from localhost ([127.0.0.1]:56092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oibT9-0000Fq-Nl for submit@debbugs.gnu.org; Wed, 12 Oct 2022 09:08:20 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:29224 helo=aws.ftbfs.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oibT5-0000Fa-1F for 58408@debbugs.gnu.org; Wed, 12 Oct 2022 09:08:18 -0400 Received: from ip68-4-255-43.oc.oc.cox.net ([68.4.255.43] helo=carlo) by aws.ftbfs.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oibSy-000Cl8-2n; Wed, 12 Oct 2022 13:08:08 +0000 Date: Wed, 12 Oct 2022 06:08:06 -0700 From: Matthew James Kraai To: 58408@debbugs.gnu.org Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No (score -2.9): Spam detection software, running on the system "aws.ftbfs.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hi, Here's an updated patch that installs autocompletion scripts for Bash, fish, and Zsh. -- Matt Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58408 Cc: "\(" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Here's an updated patch that installs autocompletion scripts for Bash, fish, and Zsh. -- Matt >From 4e856170fce977faea180f432d705772eb3ed368 Mon Sep 17 00:00:00 2001 From: Matthew James Kraai Date: Sun, 9 Oct 2022 05:07:23 -0700 Subject: [PATCH] gnu: Add doctl. * gnu/packages/admin.scm (doctl): New variable. --- gnu/packages/admin.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 13d582403b..b92c03b567 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2022 Andreas Rammhold ;;; Copyright © 2022 ( +;;; Copyright © 2022 Matthew James Kraai ;;; ;;; This file is part of GNU Guix. ;;; @@ -5596,3 +5597,53 @@ (define-public rex several hosts in succession or in parallel. It can also be used to copy a file or files to several hosts.") (license license:gpl3+))) + +(define-public doctl + (package + (name "doctl") + (version "1.83.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/digitalocean/doctl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1narjmj3npd39gxi42k3h4zjyiaq5lvjv31vaxw8slf9h9sjhjh9")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/digitalocean/doctl/cmd/doctl" + #:unpack-path "github.com/digitalocean/doctl" + #:go go-1.19 + #:build-flags + #~(list (string-append "-ldflags=-X github.com/digitalocean/doctl.Label=release" + " -X github.com/digitalocean/doctl.Major=" + (car (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Minor=" + (cadr (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Patch=" + (caddr (string-split #$version #\.)))) + #:install-source? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-completions + (lambda _ + (let ((install-completion + (lambda (shell file) + (let ((file (string-append #$output file))) + (mkdir-p (dirname file)) + (with-output-to-file file + (lambda _ + (invoke (string-append #$output "/bin/doctl") + "completion" shell))))))) + (install-completion "bash" "/etc/bash_completion.d/doctl") + (install-completion "fish" + "/etc/fish/completions/doctl.fish") + (install-completion "zsh" + "/etc/zsh/site-functions/_doctl"))))))) + (home-page "https://github.com/digitalocean/doctl") + (synopsis "Command line client for DigitalOcean") + (description + "@code{doctl} provides a unified command line interface to the DigitalOcean API.") + (license license:asl2.0))) -- 2.38.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 11:02:12 2022 Received: (at 58408) by debbugs.gnu.org; 12 Oct 2022 15:02:12 +0000 Received: from localhost ([127.0.0.1]:58218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oidFL-0008Pz-Rm for submit@debbugs.gnu.org; Wed, 12 Oct 2022 11:02:12 -0400 Received: from knopi.disroot.org ([178.21.23.139]:57500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oidFK-0008Pq-5R for 58408@debbugs.gnu.org; Wed, 12 Oct 2022 11:02:10 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3886C4DAE0; Wed, 12 Oct 2022 17:02:09 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id Zzp35tWM1XSQ; Wed, 12 Oct 2022 17:02:08 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665586892; bh=Ut0pmO+O0ZXhKY2BO6HWFfTBw/4M57VNeUolqGGfs2g=; h=Date:Subject:From:To:References:In-Reply-To; b=L//mk8zg2Q/kdCfrVuGxzbWcCjtZeVmYRwwf0+dk+2vD/f16t+b2mwWjoI9UiqO+F ZX2xx+nI4i3T/rcX63MA2RKg95w3PLyZkRoKEi4tp5Zmr+O+pPD4k+JK/ckz5NAVYG uo8Rr0mJlHywtJpd6LLw/kwVQjgOyJXkoY1W91BB2CKonaJ0Yezx+Ma05ffoZxwUsd dqgq56T62VR0xsXHUXDFOQNj1wsnnpk2U3M001Z90ItASO8zaH5iXAtp+WEf6A91+n q0uKUVT6vghM7ujcLTDFf+X2XhQ3YoR2tVUkeAo8K89+KcQDeQRA+u06wn4QbQGJDE GJKRCPwBkzH1w== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 12 Oct 2022 16:01:32 +0100 Message-Id: Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. From: "(" To: "Matthew James Kraai" , <58408@debbugs.gnu.org> References: In-Reply-To: X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello, On Wed Oct 12, 2022 at 2:08 PM BST, Matthew James Kraai wrote: > Here's an updated patch that installs autocompletion scripts for Bash, fish, and Zsh. Nice catch :) Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 FROM_ONE_CHAR Bogus FROM name -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 58408 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Hello, On Wed Oct 12, 2022 at 2:08 PM BST, Matthew James Kraai wrote: > Here's an updated patch that installs autocompletion scripts for Bash, fi= sh, and Zsh. Nice catch :) > + (lambda _ > + (let ((install-completion > + (lambda (shell file) > + (let ((file (string-append #$output file))) > + (mkdir-p (dirname file)) > + (with-output-to-file file > + (lambda _ > + (invoke (string-append #$output "/bin/= doctl") > + "completion" shell))))))) > + (install-completion "bash" "/etc/bash_completion.d/= doctl") > + (install-completion "fish" > + "/etc/fish/completions/doctl.fi= sh") > + (install-completion "zsh" > + "/etc/zsh/site-functions/_doctl= "))))))) I think it might be better to use ``(define (...) ...)'' instead of ``(let ((... (lambda ...))) ...)'' here. -- ( From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 21:02:58 2022 Received: (at 58408) by debbugs.gnu.org; 13 Oct 2022 01:02:58 +0000 Received: from localhost ([127.0.0.1]:58632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oimcj-000716-MZ for submit@debbugs.gnu.org; Wed, 12 Oct 2022 21:02:58 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:27668 helo=aws.ftbfs.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oimch-00070s-Lx for 58408@debbugs.gnu.org; Wed, 12 Oct 2022 21:02:56 -0400 Received: from ip68-4-255-43.oc.oc.cox.net ([68.4.255.43] helo=carlo) by aws.ftbfs.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oimca-000DrA-IW; Thu, 13 Oct 2022 01:02:48 +0000 Date: Wed, 12 Oct 2022 18:02:45 -0700 From: Matthew James Kraai To: "(" Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No (score -2.9): Spam detection software, running on the system "aws.ftbfs.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hi, On Wed, Oct 12, 2022 at 04:01:32PM +0100, ( wrote: > Hello, > > On Wed Oct 12, 2022 at 2:08 PM BST, Matthew James Kraai wrote: > > Here's an updated patch that installs autocompletion scripts for Bash [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58408 Cc: 58408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Wed, Oct 12, 2022 at 04:01:32PM +0100, ( wrote: > Hello, > > On Wed Oct 12, 2022 at 2:08 PM BST, Matthew James Kraai wrote: > > Here's an updated patch that installs autocompletion scripts for Bash, fish, and Zsh. > > Nice catch :) > > > + (lambda _ > > + (let ((install-completion > > + (lambda (shell file) > > + (let ((file (string-append #$output file))) > > + (mkdir-p (dirname file)) > > + (with-output-to-file file > > + (lambda _ > > + (invoke (string-append #$output "/bin/doctl") > > + "completion" shell))))))) > > + (install-completion "bash" "/etc/bash_completion.d/doctl") > > + (install-completion "fish" > > + "/etc/fish/completions/doctl.fish") > > + (install-completion "zsh" > > + "/etc/zsh/site-functions/_doctl"))))))) > > I think it might be better to use ``(define (...) ...)'' instead of > ``(let ((... (lambda ...))) ...)'' here. Thanks for the suggestion. How about the following patch? -- Matt >From f1bf9f77084a5543975364c304bcf9574abffb5b Mon Sep 17 00:00:00 2001 From: Matthew James Kraai Date: Sun, 9 Oct 2022 05:07:23 -0700 Subject: [PATCH] gnu: Add doctl. * gnu/packages/admin.scm (doctl): New variable. --- gnu/packages/admin.scm | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 13d582403b..bc8b7e9efa 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2022 Andreas Rammhold ;;; Copyright © 2022 ( +;;; Copyright © 2022 Matthew James Kraai ;;; ;;; This file is part of GNU Guix. ;;; @@ -5596,3 +5597,52 @@ (define-public rex several hosts in succession or in parallel. It can also be used to copy a file or files to several hosts.") (license license:gpl3+))) + +(define-public doctl + (package + (name "doctl") + (version "1.83.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/digitalocean/doctl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1narjmj3npd39gxi42k3h4zjyiaq5lvjv31vaxw8slf9h9sjhjh9")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/digitalocean/doctl/cmd/doctl" + #:unpack-path "github.com/digitalocean/doctl" + #:go go-1.19 + #:build-flags + #~(list (string-append "-ldflags=-X github.com/digitalocean/doctl.Label=release" + " -X github.com/digitalocean/doctl.Major=" + (car (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Minor=" + (cadr (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Patch=" + (caddr (string-split #$version #\.)))) + #:install-source? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-completions + (lambda _ + (define (install-completion shell file) + (let ((file (string-append #$output file))) + (mkdir-p (dirname file)) + (with-output-to-file file + (lambda _ + (invoke (string-append #$output "/bin/doctl") + "completion" shell))))) + (install-completion "bash" "/etc/bash_completion.d/doctl") + (install-completion "fish" + "/etc/fish/completions/doctl.fish") + (install-completion "zsh" + "/etc/zsh/site-functions/_doctl")))))) + (home-page "https://github.com/digitalocean/doctl") + (synopsis "Command line client for DigitalOcean") + (description + "@code{doctl} provides a unified command line interface to the DigitalOcean API.") + (license license:asl2.0))) -- 2.38.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 13 02:11:51 2022 Received: (at 58408) by debbugs.gnu.org; 13 Oct 2022 06:11:51 +0000 Received: from localhost ([127.0.0.1]:59044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oirRe-0000TD-Vw for submit@debbugs.gnu.org; Thu, 13 Oct 2022 02:11:51 -0400 Received: from knopi.disroot.org ([178.21.23.139]:40332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oirRd-0000T6-RT for 58408@debbugs.gnu.org; Thu, 13 Oct 2022 02:11:50 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 37D724D86F; Thu, 13 Oct 2022 08:11:49 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8PfsFEO2FJvT; Thu, 13 Oct 2022 08:11:48 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665641507; bh=bi+FlU8TEj7aySdYRDQoO2M52e2quQh6VS3/j8Vpo84=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DKLUkQgK8D5823LFMdFQmCPeGT4StKj47mvzs/Z3Hop7vmELS+XlyvLsZbZlQnhDv JhH5OogkQnRjSjhLrIOvcStzxi42WgSkzsyB9rqx9QVgcAuqyUrDo097s+9b6SMEEB i+Fz6Ly20fYgWIbxzWq2lYNWmIffLTAYpdpen79qkttFv+w+kJ6Q8n20sH65JUorsc tw0F596dDvmE27qPlR1FvbrfO0TlqBgC+YGV51a5wizRgCIXPWgIU7t1cho+WQnUrw w5Bsy1AT+rajDeXsNLiG2O/gTGcQ/j7Nif97SgupmAtkcsAOgXX24yCdX10zYnwoPr wNd9fBaDD6gcA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 13 Oct 2022 07:11:47 +0100 Message-Id: From: "(" To: "Matthew James Kraai" Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. References: In-Reply-To: X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: All LGTM now :) -- ( Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 FROM_ONE_CHAR Bogus FROM name -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 58408 Cc: 58408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) All LGTM now :) -- ( From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 23:38:44 2022 Received: (at 58408) by debbugs.gnu.org; 21 Oct 2022 03:38:44 +0000 Received: from localhost ([127.0.0.1]:36555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olirr-0007k3-T9 for submit@debbugs.gnu.org; Thu, 20 Oct 2022 23:38:44 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:54708 helo=aws.ftbfs.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olirp-0007jj-K3 for 58408@debbugs.gnu.org; Thu, 20 Oct 2022 23:38:43 -0400 Received: from ip68-4-255-43.oc.oc.cox.net ([68.4.255.43] helo=carlo) by aws.ftbfs.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1olirj-0001dh-DZ for 58408@debbugs.gnu.org; Fri, 21 Oct 2022 03:38:35 +0000 Date: Thu, 20 Oct 2022 20:38:34 -0700 From: Matthew James Kraai To: 58408@debbugs.gnu.org Subject: Re: [bug#58408] [PATCH] gnu: Add doctl. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No (score -2.9): Spam detection software, running on the system "aws.ftbfs.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hi, Here's an updated patch that installs the latest version, 1.84.1. -- Matt Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58408 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Here's an updated patch that installs the latest version, 1.84.1. -- Matt >From 53ebbadf664dda942b4d749803b5ece4e4aef0f6 Mon Sep 17 00:00:00 2001 From: Matthew James Kraai Date: Sun, 9 Oct 2022 05:07:23 -0700 Subject: [PATCH] gnu: Add doctl. * gnu/packages/admin.scm (doctl): New variable. --- gnu/packages/admin.scm | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 13d582403b..19189838df 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2022 Andreas Rammhold ;;; Copyright © 2022 ( +;;; Copyright © 2022 Matthew James Kraai ;;; ;;; This file is part of GNU Guix. ;;; @@ -5596,3 +5597,52 @@ (define-public rex several hosts in succession or in parallel. It can also be used to copy a file or files to several hosts.") (license license:gpl3+))) + +(define-public doctl + (package + (name "doctl") + (version "1.84.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/digitalocean/doctl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1jmqvz1rdqrsr4l0bv3ik1jla0xnbdvcmnw9892acvfs3wsmliyc")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/digitalocean/doctl/cmd/doctl" + #:unpack-path "github.com/digitalocean/doctl" + #:go go-1.19 + #:build-flags + #~(list (string-append "-ldflags=-X github.com/digitalocean/doctl.Label=release" + " -X github.com/digitalocean/doctl.Major=" + (car (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Minor=" + (cadr (string-split #$version #\.)) + " -X github.com/digitalocean/doctl.Patch=" + (caddr (string-split #$version #\.)))) + #:install-source? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-completions + (lambda _ + (define (install-completion shell file) + (let ((file (string-append #$output file))) + (mkdir-p (dirname file)) + (with-output-to-file file + (lambda _ + (invoke (string-append #$output "/bin/doctl") + "completion" shell))))) + (install-completion "bash" "/etc/bash_completion.d/doctl") + (install-completion "fish" + "/etc/fish/completions/doctl.fish") + (install-completion "zsh" + "/etc/zsh/site-functions/_doctl")))))) + (home-page "https://github.com/digitalocean/doctl") + (synopsis "Command line client for DigitalOcean") + (description + "@code{doctl} provides a unified command line interface to the DigitalOcean API.") + (license license:asl2.0))) -- 2.38.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 23 09:07:54 2022 Received: (at 58408-done) by debbugs.gnu.org; 23 Oct 2022 13:07:54 +0000 Received: from localhost ([127.0.0.1]:43817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omahl-0006pg-Qk for submit@debbugs.gnu.org; Sun, 23 Oct 2022 09:07:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omahh-0006pR-WB for 58408-done@debbugs.gnu.org; Sun, 23 Oct 2022 09:07:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omahc-0008LI-Ku; Sun, 23 Oct 2022 09:07:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=MGTYFAAHbimFQ+4Ypf/eeApGLtgZeel8R6KrtPLQYZo=; b=aVeXoI7E47CnWMMEfuui vD9PXBBMhoCbMX46U138+K0oXO6uafl0I1sgHtEAlQ8AxX+WJAB2w5RB6dXWjH8mqV+CzFvparCa/ Wtiytu59fLC8pJHrE9c96/OuyfWQ3+COUmfkqWXKnxNP2Hh+G3vn46WWLvMSfUdF19AowNcbXZ76v zQcVjbAtHEHpUmHLG15IHEIp0f2CzSb8H77igzwGZpY7e14n3XH6YnXe9i3zS2xhrix3Vz9bH4ZDD nJD6zLMgFmanih9iw1tOf5opwZFXbMb663NUop5DL1U+anK2ajkL0r6ATMaNMaxtPwXg9Hhuum3G+ +Za0Uh9jQeg86A==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omahc-0006T8-0a; Sun, 23 Oct 2022 09:07:44 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Matthew James Kraai Subject: Re: bug#58408: [PATCH] gnu: Add doctl. References: Date: Sun, 23 Oct 2022 15:07:41 +0200 In-Reply-To: (Matthew James Kraai's message of "Thu, 20 Oct 2022 20:38:34 -0700") Message-ID: <878rl64rj6.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58408-done Cc: 58408-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Matthew James Kraai skribis: >>>From 53ebbadf664dda942b4d749803b5ece4e4aef0f6 Mon Sep 17 00:00:00 2001 > From: Matthew James Kraai > Date: Sun, 9 Oct 2022 05:07:23 -0700 > Subject: [PATCH] gnu: Add doctl. > > * gnu/packages/admin.scm (doctl): New variable. Applied, thank you, and thanks unmatched-paren for reviewing! Ludo=E2=80=99. From unknown Fri Jun 20 07:20:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 21 Nov 2022 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator