From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eDjBOMIPkmPR3gAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 17:24:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0PnVN8IPkmOAWAEAG6o9tA (envelope-from ) for ; Thu, 08 Dec 2022 17:24:34 +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 97AB41E08F for ; Thu, 8 Dec 2022 17:24:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3Jgr-0000uQ-Id; Thu, 08 Dec 2022 11:24:05 -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 1p33YI-0005Bq-Hw for guix-devel@gnu.org; Wed, 07 Dec 2022 18:10:10 -0500 Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p33YD-0002rY-Of for guix-devel@gnu.org; Wed, 07 Dec 2022 18:10:10 -0500 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id B23271084 for ; Thu, 8 Dec 2022 00:10:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-disposition:content-type :content-type:mime-version:message-id:subject:subject:from:from :date:date:received:received:received; s=dkim20160331; t= 1670454599; x=1672269000; bh=L8DOeIMThNGmEMKq8GGVWpNgsTKkj0DaNJj j+kNt6pA=; b=J93mhMWDa7zkGsOzOc0GAXmVyxtVfLHq31YpffHjvr/dAVWopKo tUfQW4TvtPt+H3PW8IYwS5xwpKLm7gTnRE7SrLGfLJNcpomz10rsuv9rrKlF8Sfh PICPHqYbw5aQMcupf54eza3+LKSuaoSzvnzSFOAZvn2PxKpyMnBnlVU71fcr0jP3 OFp/i+T7pDhCVrXTsRiQ/TJid5TZcehcotvYQFTgtPrYEVi5TmLpQnbAurKDy/R0 mxidf4T2O5Acq8C9+ysKcyNQ4Bh2PqOiDI9Ok+YsdFNt1PiGgC3cnf9cxhN6I/Gk XDGMa40PyhxVsI1i0Fkr+iFJpoDQvXTiY16asXHuuNRji80jkFNB4NwvOJAlojlk OkYGB/UKiXUKrjO8Wysxa2jeKeKgigQNFSm0AQvHiO1iKpLootLCa4cLZNR4a+23 D6uWU1rNDO0U6+n2YevD4qyXt2kN7ZSxhhxWBiRGpoLXvPy0+oebXw5h+Pjpqy06 exvc9r2nR0jOiE5U+Q0MkDLvSc3fLyA2TS3+NQAkGE8JDvobintZYRNgnB0JHZxh BU0uzujCPk9DD4+/9ItuUeyyrM/AXkTFa73SY/65AfPKOoAZPAeiK3RTi2xK0yYT DmVGujnAR4TX9dRyTIM40JXbfpoq3rDmCEPpVnqXgKCIQ/Xe5MqQVx+8= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AW4Hu74OHf7q for ; Thu, 8 Dec 2022 00:09:59 +0100 (CET) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by mx.kolabnow.com (Postfix) with ESMTPS id 93F791050 for ; Thu, 8 Dec 2022 00:09:58 +0100 (CET) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 552063824 for ; Thu, 8 Dec 2022 00:09:58 +0100 (CET) Date: Wed, 7 Dec 2022 14:09:53 -0900 From: Christopher Howard To: Guix-devel Subject: Go path issue Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 08 Dec 2022 11:24:04 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-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=1670516674; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=L8DOeIMThNGmEMKq8GGVWpNgsTKkj0DaNJjj+kNt6pA=; b=WtxZZxguqh75WfHfMQG3VP4LDNZnVB0WZDldis50fFon0grKdmZ0BxFPc06SNvU7+xHamD opy/RNacg3yAKVJPZvtFWDnIPmqh7VERiw563VpBSKbBYT32uyPSYZTnPesZnkKaoLAxmS +79jCZ6fVNDE7/dQ0eTvV5qNTk8XBiCLSxE/xB3mR2jrMYTjg3JU7uZJzmx60ZGuczswzI fSEreGrRjhHwOP2cDdLrHvVyVww0015uoicjWMxM8oiHpDzeOPIdsy3YbH/1CGYzfoQW+X xaonSF1ZrfKCM7GpuKzBUL8ul7FLFCHNxc0YAiDoLg9U9SaHD/ALiJAfLi7xrA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670516674; a=rsa-sha256; cv=none; b=sFM/aop/Kw9/NzmSBabnxNnq1bp/qr3IeP2DBzQOf0biVXXjqoPK6D3+8+0Nsmz7GhBt8S TFsDVaDUxGqD/qw6fy4fjhJXkRis9NeBIMMrCaf0i/B6jd7vTFiFKBaDK3v7wh/1oR+E2v yijJZY3kL0KUHPycHEuHfiZuZg8WV/1Ks9LVtpXLpQGr9KZpllnBpb1LPN+iIhuxjgug9l h4VcJYyYyQ1z5V/xeqsnx5Rxc4Yt+ZCIR+nJo6XX4+KLCL5j3ZmQQM1gZotmWylRz/nObA Df38g684khv0kewBuyfXyMZ1cq55Hq2qNaMKJXAE+TqA4l5iqCH+eFg9VGaUVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=J93mhMWD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.26 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=J93mhMWD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 97AB41E08F X-Spam-Score: -9.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: PwnNqBW6b8Ge Hello, I was trying to package some go software, using a definition based on what I got from the importer. This is my working definition: ``` (define-public go-git-sr-ht-adnano-go-gemini (package (name "go-git-sr-ht-adnano-go-gemini") (version "0.2.3") (source (origin (method git-fetch) (uri (git-reference (url "https://git.sr.ht/~adnano/go-gemini") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0mv4x4cfwyhh77wfb3r221bhr84x4nmjpgysnvvjgmbnnafsgfns")))) (build-system go-build-system) (arguments '(#:import-path "git.sr.ht/~adnano/go-gemini")) (propagated-inputs `(("go-golang-org-x-net" ,go-golang-org-x-net))) (home-page "https://git.sr.ht/~adnano/go-gemini") (synopsis "go-gemini") (description "Package gemini provides Gemini client and server implementations.") (license license:expat))) ``` This almost works, but the build fails because of a path issue: ``` starting phase `build' src/golang.org/x/net/idna/idna10.0.0.go:25:2: cannot find package "golang.org/x/text/secure/bidirule" in any of: /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/golang.org/x/text/secure/bidirule (from $GOROOT) /tmp/guix-build-go-git-sr-ht-adnano-go-gemini-0.2.3.drv-0/src/golang.org/x/text/secure/bidirule (from $GOPATH) src/golang.org/x/net/idna/idna10.0.0.go:26:2: cannot find package "golang.org/x/text/unicode/bidi" in any of: /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/golang.org/x/text/unicode/bidi (from $GOROOT) /tmp/guix-build-go-git-sr-ht-adnano-go-gemini-0.2.3.drv-0/src/golang.org/x/text/unicode/bidi (from $GOPATH) src/golang.org/x/net/idna/idna10.0.0.go:27:2: cannot find package "golang.org/x/text/unicode/norm" in any of: /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/golang.org/x/text/unicode/norm (from $GOROOT) /tmp/guix-build-go-git-sr-ht-adnano-go-gemini-0.2.3.drv-0/src/golang.org/x/text/unicode/norm (from $GOPATH) Building 'git.sr.ht/~adnano/go-gemini' failed. ``` I looked and saw that the the files are available, but from the directory /gnu/store/...-go-1.17.11/lib/go/src/vendor/golang.org/x/text/... So, build system is looking for them at lib/go/src/golang.org but they are installed at lib/gosrc/***VENDOR***/golang.org. I don't know much about Go or about how the paths are handled by our Go build system, so I was hoping somebody here could help me resolve this issue. I'm not a Go programmer but I was hoping to package another piece of software that depends on this one. -- 馃摏 Christopher Howard 馃殌 gemini://gem.librehacker.com 馃寪 http://gem.librehacker.com 讘专讗砖讬转 讘专讗 讗诇讛讬诐 讗转 讛砖诪讬诐 讜讗转 讛讗专抓