unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "(" <paren@disroot.org>
To: "jgart" <jgart@dismail.de>
Cc: "Guix Help" <help-guix@gnu.org>
Subject: Re: How do I use a Golang library with GNU Guix?
Date: Sat, 10 Sep 2022 18:46:48 +0100	[thread overview]
Message-ID: <CMSWR31R9ZTB.2IOXR38M0J14R@guix-aspire> (raw)
In-Reply-To: <20220910123910.GF22293@dismail.de>

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>.

    -- (


      reply	other threads:[~2022-09-10 17:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-06 13:42 How do I use a Golang library with GNU Guix? jgart
2022-09-10  9:01 ` (
2022-09-10 17:39   ` jgart
2022-09-10 17:46     ` ( [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CMSWR31R9ZTB.2IOXR38M0J14R@guix-aspire \
    --to=paren@disroot.org \
    --cc=help-guix@gnu.org \
    --cc=jgart@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).