From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IDq7ErJPx2NAOAEAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 02:47:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UEaOErJPx2NpZAEAauVa8A (envelope-from ) for ; Wed, 18 Jan 2023 02:47:30 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 117BB8DB3 for ; Wed, 18 Jan 2023 02:47:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHxX7-0002vM-Gz; Tue, 17 Jan 2023 20:46:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHxWq-0002o6-0L for guix-patches@gnu.org; Tue, 17 Jan 2023 20:46:16 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHxWp-0007Cn-Ns for guix-patches@gnu.org; Tue, 17 Jan 2023 20:46:15 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHxWp-0007dh-KB for guix-patches@gnu.org; Tue, 17 Jan 2023 20:46:15 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60918] [PATCH 19/25] gnu: Add govulncheck. Resent-From: Katherine Cox-Buday Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Jan 2023 01:46:15 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60918 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60918@debbugs.gnu.org Cc: Katherine Cox-Buday X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167400635729018 (code B ref -1); Wed, 18 Jan 2023 01:46:15 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jan 2023 01:45:57 +0000 Received: from localhost ([127.0.0.1]:38645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHxWX-0007Xr-7D for submit@debbugs.gnu.org; Tue, 17 Jan 2023 20:45:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:44512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHxW7-0007VZ-KV for submit@debbugs.gnu.org; Tue, 17 Jan 2023 20:45:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHxW6-0002Aq-BS for guix-patches@gnu.org; Tue, 17 Jan 2023 20:45:31 -0500 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHxW3-0006z5-Dx for guix-patches@gnu.org; Tue, 17 Jan 2023 20:45:29 -0500 Received: by mail-il1-x131.google.com with SMTP id m15so16395792ilq.2 for ; Tue, 17 Jan 2023 17:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nsGiSmTHQhoa5x4477jUlqfWV5ZEC8y5yWG6R7ldyuI=; b=KAzMugcVSF+s3H3BNEQWsx+4SKnfSoXVaT4Yfr0Gfi/CRsndz3t/iNxo8Cnx8khG6U fOxp2lAuiu6YaRc1qUByRBIRnVVwxVyHugPYGZaEKv8OESxXsW696eaNqpwMSe5DW2Dd T8fCG636TR92Semukr6peCvM7ubgDd+qx/KryT2vCWPorwqriS2Z+NIT7tjKkg6W1iBc GhjJPb4nIctuwtaxbCI97B51utfYhO6kj2nKyRljC5/JBcf1tv8vhVHdF2CXIfd59oMO 8wtvkZKOJ7qysD/+cI47qxyNcF+1IqUay5kUv9bdPrGtqv05FWXNH6oE4wF2CWoKXbUw StfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nsGiSmTHQhoa5x4477jUlqfWV5ZEC8y5yWG6R7ldyuI=; b=ENf5V9QjbUoaNsKGGuzqYETT65rf2MKrIbsCmNdn8E478YEKorix5HNkIXfuchN5PZ maXdCIPwbgZqvN788wvo/wVyjhU1KIFor8x/DgaGRjvmUnRyiI3b5ckzXu++5Jf733+h kKHQjQkep6IINmEhDof9GJlr79AqeqeAr/tWluQSPzvVAeKvfxpZ6LlNvcMEPRyi2qr/ RMXBK40Ej2r1QaD5f4neQWxJn63nOu24taCfNtkIa3ConLHTy7goo2hss7jiSiapqU4R WZwuWIxl8YCDqarmeBitpHEm3zc4KsoNL1HGyYXweSqAJ7SI+/iNGVibcktof1jrpQ3K PFrQ== X-Gm-Message-State: AFqh2kqjbTO8aIAowYxVVMxuc9vCmUto+PsztBnIqV9L3ZS+R9s1P0mF K8AVwYlB7q03TtWuHSGxXqPQGTZC3BI= X-Google-Smtp-Source: AMrXdXvBHMhFQ9pm19kbHpp7TZZAs8r+MNHUWeyL/ZSj/LPRC57iEATw10tIvB11Aq8e9xsDi2ZYDQ== X-Received: by 2002:a92:ccd1:0:b0:30b:fcc3:3be7 with SMTP id u17-20020a92ccd1000000b0030bfcc33be7mr4344921ilq.16.1674006326227; Tue, 17 Jan 2023 17:45:26 -0800 (PST) Received: from washu-v4.home.cox-buday.com (c-174-51-139-101.hsd1.co.comcast.net. [174.51.139.101]) by smtp.gmail.com with ESMTPSA id p32-20020a056638192000b0039e89ea68f9sm7889250jal.135.2023.01.17.17.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 17:45:25 -0800 (PST) From: Katherine Cox-Buday Date: Tue, 17 Jan 2023 18:45:04 -0700 Message-Id: <20230118014510.19320-20-cox.katherine.e@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118014510.19320-1-cox.katherine.e@gmail.com> References: <20230118014510.19320-1-cox.katherine.e@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::131; envelope-from=cox.katherine.e@gmail.com; helo=mail-il1-x131.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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674006450; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nsGiSmTHQhoa5x4477jUlqfWV5ZEC8y5yWG6R7ldyuI=; b=gVYRG/lSSlUaGf453XnpXdNlFQmaLVc4Fjf5+DhlGACSTaB/h9a+R3oNsVki/qSepCoGw4 /oBWbdIbV2i2t6uAWiAYsMMjB8qrBdwsTsm0vVK+t3P5FAjQ9OsypoM3LJfIkK+A3zaoJk KPdW8GC9rYyQbTWNMaT3Xb3SSjy82U04HsF88M1qT3qg09ESa5HS7G+7R7zEjCg3CL1BKR GLXphiypOEFevBCOhjsLNXcF4S1SDTNOKLCXiE8dTuMRQj+90EMLm9GYRivB0HFNjwtpBb tNYGfdzrSPRdf1VXCHOOYEUvDyKk/w1ymtGLlCHjA0g/X0zqod7cscYOGUtxOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KAzMugcV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674006450; a=rsa-sha256; cv=none; b=BMzJXu0SVUBjED+DyJDiNnzhc78r82j+/MBUbOSY6/7QOKkYfIZbcq5NtjMutg+UGqCeTq zmkjkUXg/uhv7tTJwysx08cBk4jEmkY/ORLAOCLUyaOSB6c4CWBiXT2/iqpHDQJzspPzGR EvNl7ebtCF3dxoo6GE4OkmjqJbfXTyghjZiN5n6HgxdGHlA1cyy3p+jA1pL6naSbpT3IiQ f3qk9KuVGU12utKVA7Rg9D6h7K0LGpwoi3qKtRpVlj7b60AGaY3og43EWSV7x8axk6opfN EQgRRq66+f8aNUKmBS5qADyAgybOjMXuqAlymj+XR7wjuDTA0bwGaizfVYuDTg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 6.17 X-Spam-Score: 6.17 X-Migadu-Queue-Id: 117BB8DB3 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KAzMugcV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: mm/BU1Yix29y * gnu/packages/golang.scm (govulncheck): New variable. --- gnu/packages/golang.scm | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index eaff0dfc37..f135b2717f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2956,6 +2956,57 @@ (define-public go-golang-org-x-crypto (home-page "https://go.googlesource.com/crypto/") (license license:bsd-3)))) +(define-public govulncheck + (package + (name "govulncheck") + (version "0.0.0-20221229164908-ebf31f7dc3ef") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/vuln") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1w055g90k7anrrcvfrsqklxzl9pl0vqdiwpayj9f0brwys9xhj7d")))) + (build-system go-build-system) + (arguments + `(#:import-path "golang.org/x/vuln" + #:go ,go-1.19 + #:install-source? #f + #:phases ,#~(modify-phases %standard-phases + (add-after 'unpack 'remove-go-mod-tidy + (lambda _ + (substitute* "src/golang.org/x/vuln/checks.bash" + (("go mod tidy") + #$(file-append coreutils-minimal "/bin/true"))))) + (replace 'build + (lambda arguments + (apply (assoc-ref %standard-phases + 'build) + `(,@arguments #:import-path + "golang.org/x/vuln/cmd/govulncheck"))))))) + (native-inputs (list coreutils-minimal)) + (inputs (list go-golang-org-x-sys + go-github-com-google-renameio + go-github-com-burntsushi-toml + go-mvdan-cc-unparam + go-honnef-co-go-tools + go-golang-org-x-tools + go-golang-org-x-sync + go-golang-org-x-mod + go-golang-org-x-exp + go-github-com-google-go-cmp-cmp + go-github-com-google-go-cmdtest + go-github-com-client9-misspell)) + (home-page "https://golang.org/x/vuln") + (synopsis "Go Vulnerability Management") + (description + "This repository contains packages for accessing and analyzing data from the +@@url{https://vuln.go.dev,Go Vulnerability Database}. It contains the +following:") + (license license:bsd-3))) + (define-public go-github-com-protonmail-go-crypto (package (name "go-github-com-protonmail-go-crypto") -- 2.38.1