[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I use a Golang library with GNU Guix?
From: |
( |
Subject: |
Re: How do I use a Golang library with GNU Guix? |
Date: |
Sat, 10 Sep 2022 18:46:48 +0100 |
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
> hierarchy
> ;; structure called a 'workspace' [1]. This workspace can be found by Go via
> ;; the GOPATH environment variable. Typically, all Go source code and
> compiled
> ;; 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 union of
> ;; the Go-language dependencies. Previously, we made GOPATH a list of store
> ;; directories, but stopped because Go programs started keeping references to
> ;; these directories in Go 1.11:
> ;; <https://bugs.gnu.org/33620>.
-- (