From patchwork Mon Feb 1 12:46:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 26807 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1A91527BC1D; Mon, 1 Feb 2021 12:48:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9C37D27BC24 for ; Mon, 1 Feb 2021 12:48:12 +0000 (GMT) Received: from localhost ([::1]:34564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6Ycl-0000dP-Pv for patchwork@mira.cbaines.net; Mon, 01 Feb 2021 07:48:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Ycd-0000cf-9B for guix-patches@gnu.org; Mon, 01 Feb 2021 07:48:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6Ycc-0003BL-4N for guix-patches@gnu.org; Mon, 01 Feb 2021 07:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6Ycc-0002gS-0W for guix-patches@gnu.org; Mon, 01 Feb 2021 07:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46234] [PATCH] Add new gopkg.in/yaml.v3 Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Feb 2021 12:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46234 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46234@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161218363110237 (code B ref -1); Mon, 01 Feb 2021 12:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Feb 2021 12:47:11 +0000 Received: from localhost ([127.0.0.1]:59318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ybn-0002f3-EU for submit@debbugs.gnu.org; Mon, 01 Feb 2021 07:47:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:55794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ybj-0002et-N0 for submit@debbugs.gnu.org; Mon, 01 Feb 2021 07:47:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Ybj-0008SL-De for guix-patches@gnu.org; Mon, 01 Feb 2021 07:47:07 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:46877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6Ybf-0002oy-Ps for guix-patches@gnu.org; Mon, 01 Feb 2021 07:47:07 -0500 Received: by mail-wr1-x429.google.com with SMTP id q7so16396264wre.13 for ; Mon, 01 Feb 2021 04:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=00ZHKjCL9TiEWDgSKstl2dWVmKHeSNU7BJLJcDw9CEk=; b=UVPq2vqB63C1Aa9kkGrYc599cAwBx9JHmcOEZE+Sd5WHTM/A3Hx8bkNwgquiNt8AY8 P1kJ/Gb/vJ16IajZGQ+OPuut6hcV0D1oDec4YhKuS/tRROdTUhiZiS0raeIEhc3CAXqU BZR29V4dzQRbZOS9iPJfLKaO7GqBhT0wmKam6w7eOYjfkR0F/01xuvs65z88gOXsYys5 v5USwY8YiRGkw0WQuF4NzXyDu5RhTKq0tMFCTYweLZ+yhNBilKlGdGS78nR5h/fyRMlO fQHPcORIwMhVtabtc/wusJn6ezCs7g0hyq02Fqt6FszwfT0hl1zo6H5bHi1NloLgbcty u+8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=00ZHKjCL9TiEWDgSKstl2dWVmKHeSNU7BJLJcDw9CEk=; b=Zt+h6xLMRb3g55o9oIqw6xDAScydMYv6iIgLgOy96Su2m4sdFo7Qsc0OpmJEw8d2P+ tF05AZvWwc6rpOCGTqi0hTli+qUPXG2UOBRnsFRiW0Dd975kjGZJ26CXZIlOgiph8utN eJMK3/1DEq1PMiJed51mnfu+smBILAnRBgW2H06F6BdI/zzUran4r/c9KiiMjqtf0dgf R7dkPVy3HjHmmn0z8YsXQyvlaQOhYwzufeEUtan8YJTFv/MmcHAZRIYeDkOLOZ+jz1ZH 31q2R2giYg72VHK01sqesGpCeNLzO0lNvDN+PNpMpGMEGWwJ934XLAirN4A5+yigUtXU MrXQ== X-Gm-Message-State: AOAM533ZzZpLsaJKbY7Zf8dxCNRuvDqXsqohuM3VPXg6yiL2EzIv4hay xCvfd8h05i5AQQZRFmn8GOiyJqafuRh8DIvcws+27Iry X-Google-Smtp-Source: ABdhPJydOXweld0vRABLFWdwP0P4Hl1a1rIV6b+Oom7dDn62jAT+n6ERcfy0jzZWNgRt0ulqTmmkG5p61lrZtJib/Z0= X-Received: by 2002:adf:ee0d:: with SMTP id y13mr18109763wrn.228.1612183621364; Mon, 01 Feb 2021 04:47:01 -0800 (PST) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Mon, 1 Feb 2021 12:46:50 +0000 Message-ID: Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=sharlatanus@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches -- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости. From 31a174054c86fd51e81185d5b2bfcf2ab6bcf208 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 1 Feb 2021 12:44:15 +0000 Subject: [PATCH] gnu: Add gopkg.in/yaml.v3 * gnu/packages/golang.scm (go-gopkg-in-yml-v3): New variable --- gnu/packages/golang.scm | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d34bb1acb7..56843820f0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 raingloom ;;; Copyright © 2020 Martin Becze +;;; Copyright © 2021 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -2408,6 +2409,47 @@ which satisfies the cron expression.") values.") (license license:asl2.0))) +(define-public go-gopkg-in-yaml-v3 + (package + (name "go-gopkg-in-yaml-v3") + (version "3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gopkg.in/yaml.v3.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06f4lnrp494wqaygv09dggr2dwf3z2bawqhnlnnwiamg5y787k4g")))) + (build-system go-build-system) + (arguments + '(#:import-path "gopkg.in/yaml.v3")) + (native-inputs + `(("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1))) + (home-page "https://gopkg.in/yaml.v2") + (synopsis "YAML reader and writer for the Go language") + (description + "This package provides a Go library for encode and decode YAML +values. + +v3 specification difference: +@itemize +@item YAML 1.1 bools (yes/no, on/off) are supported as long as they are +being decoded into a typed bool value. Otherwise they behave as a string. +Booleans in YAML 1.2 are true/false only. + +@item Octals encode and decode as 0777 per YAML 1.1, rather than 0o777 as +specified in YAML 1.2, because most parsers still use the old format. Octals in +the 0o777 format are supported though, so new files work. + +@item Does not support base-60 floats. These are gone from YAML 1.2, and were +actually never supported by this package as it's clearly a poor choice. +@end itemize\n") + +@end itemize\n") + (license license:asl2.0))) + (define-public go-github-com-mattn-go-isatty (package (name "go-github-com-mattn-go-isatty") -- 2.30.0