From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7096C158020 for ; Fri, 21 Oct 2022 22:53:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4031E0855; Fri, 21 Oct 2022 22:53:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 88FBDE0855 for ; Fri, 21 Oct 2022 22:53:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 829D2340FEB for ; Fri, 21 Oct 2022 22:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BB30A609 for ; Fri, 21 Oct 2022 22:53:22 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1666392747.733b4944c1a061269f96219cc96530f89d8f439e.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/go-module.eclass X-VCS-Directories: eclass/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 733b4944c1a061269f96219cc96530f89d8f439e X-VCS-Branch: master Date: Fri, 21 Oct 2022 22:53:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d1ecd7e6-3a45-4f3a-a785-57dd3c8834db X-Archives-Hash: e1b38addabf32e1b44b09e2feb14885a commit: 733b4944c1a061269f96219cc96530f89d8f439e Author: William Hubbs gentoo org> AuthorDate: Fri Oct 21 22:52:27 2022 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Oct 21 22:52:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=733b4944 go-module.eclass: run "go mod verify" on modules from dependency tarball It appears that go build does not completely detect whether a module has been modified since it was downloaded, so we need this step. Signed-off-by: William Hubbs gentoo.org> eclass/go-module.eclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass index 8047d498b08d..4916b31a1b59 100644 --- a/eclass/go-module.eclass +++ b/eclass/go-module.eclass @@ -358,6 +358,10 @@ go-module_src_unpack() { die "Please update this ebuild" else default + if [[ ! -d "${S}"/vendor ]]; then + cd "${S}" + ego mod verify + fi fi }