From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 wAJMI6XNHGM8AwAAbAwnHQ (envelope-from ) for ; Sat, 10 Sep 2022 19:47:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KXgrI6XNHGNr1AAA9RJhRA (envelope-from ) for ; Sat, 10 Sep 2022 19:47:17 +0200 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 3D08A2B36D for ; Sat, 10 Sep 2022 19:47:17 +0200 (CEST) Received: from localhost ([::1]:58152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oX4ZY-0000AV-Ea for larch@yhetil.org; Sat, 10 Sep 2022 13:47:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oX4ZC-0000AL-Bu for help-guix@gnu.org; Sat, 10 Sep 2022 13:46:54 -0400 Received: from knopi.disroot.org ([178.21.23.139]:45646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oX4ZA-0000Vd-HE for help-guix@gnu.org; Sat, 10 Sep 2022 13:46:54 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 489ED400EC; Sat, 10 Sep 2022 19:46:50 +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 T3jiBODbIn1N; Sat, 10 Sep 2022 19:46:49 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662832009; bh=zmtfKyUyyoo3guwK1YFMHEowFz21fRZfoY+lQVfrYGg=; h=Date:Cc:Subject:From:To:References:In-Reply-To; b=JX4NJQKhaGtyCd5x/YxY0+wLOWItksjaJZSrC+F5Sp4QuzxFr0hcGdw+bBwKZgKGb 0wP6AA5JUqO94cATMPkniHEYU0OPIoVDjoR2NlnlcXfWxQxoeypmsZd61wlA88trBl wkdP/SzaKPJtz0yoSsnyJVFPTeyIoBDFgt5wySHUSQlzHqo6jMy+2xXxvqyx3Ydp0M HRLnk+3EYqh38+Rps3Zxj9N5wGbW0v9b7mHV+XlNWeRC8UcDMpHqCr0SCQ7JSVA9y5 vF+d9Z9BKLpsAKfphHyblkkxDVka5HcpubNCzRwwVtmNBmgnXXKPaGD+J0LFVvTRey b2ajYU1hc8wUg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 10 Sep 2022 18:46:48 +0100 Message-Id: Cc: "Guix Help" Subject: Re: How do I use a Golang library with GNU Guix? From: "(" To: "jgart" References: <20220906084201.GB10353@dismail.de> <20220910123910.GF22293@dismail.de> In-Reply-To: <20220910123910.GF22293@dismail.de> Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 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, FROM_ONE_CHAR=1.224, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662832037; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LvMr/zoySm717I8qWt0+jz3bnmsC88+i0FnVIElDpgk=; b=kkzOLquyjF4KHCtN3mCDX3gbzpysrj7QEtJQXTFODSNDd+xVFLrHzB5HJM1BTlcgNZSNDv FlKv8v4widPnwKPa87TxPvbkNNzqDSBrtAmAU4b0EyrSKr49HTp7VtDGjk37u7bh+TNCMP utkvG6wieERVQ/NZZmFbnjMrgLB2EC3kDf4NIkIY/vxggMJaTIf5ag+7Ym/OKlFz8zFjqI HOrHFJFNXbxmfZ+trag+Hdc5xkpmXrap4zsUPvYdPdD82PVaUci9s6zTOjrJ0eIBt7gUkr MiFV8/lTxrZVFHTPRB9zISfFuYQpGlsJ88u/uCBfzP7y0af6GKIo9nssErPYvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662832037; a=rsa-sha256; cv=none; b=EEhOWN0HvKD9ysMERgD0Kr7v40O5ln84Og0qiuEFdWyvN809HMjdwXSGyl4F/ekNIN6OHV wcIfEiVMxVKi8f4M2fXBJeaFXJG8fONw2awJLkliAa5D4wEJF2b9zksCedOoWXp1VQ6zW6 os1ZkpYpZxJE/Aeh5z2ksYdlWUVj8UuYvKGcSiWFeGgTjBtfQsLHSoOaddfZoMp/XZRBKf dvEGIK8l8hHsp4Zh6WdDrr+etStE5gYcQtM5/+Jmw4Puo/QIqbFRnWmNW+3OSP/b5C271T wL9WKyPtbHFoN/aEHef1zwGqSW1ej2GlHOkz0D/c/oK4pjNgE6ED9oIumr5lAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=JX4NJQKh; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=JX4NJQKh; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3D08A2B36D X-Spam-Score: -1.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: QgVTt8NojxYc On Sat Sep 10, 2022 at 6:39 PM BST, jgart wrote: > Have you tested that before? Ooh, yes, I see what you mean, it tries to download packages even if you have them installed via Guix. Looks like the go-build-system does some special magic to get it to work: > ;; Go software is developed and built within a particular file system hie= rarchy > ;; structure called a 'workspace' [1]. This workspace can be found by Go= via > ;; the GOPATH environment variable. Typically, all Go source code and co= mpiled > ;; objects are kept in a single workspace, but GOPATH may be a list of > ;; directories [2]. In this go-build-system we create a file system unio= n of > ;; the Go-language dependencies. Previously, we made GOPATH a list of sto= re > ;; directories, but stopped because Go programs started keeping reference= s to > ;; these directories in Go 1.11: > ;; . -- (