[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: packaging a golang package
From: |
Leo Famulari |
Subject: |
Re: packaging a golang package |
Date: |
Fri, 08 Jan 2021 14:01:26 -0500 |
User-agent: |
Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396 |
On Fri, Jan 8, 2021, at 02:01, Timmy Douglas wrote:
>
> I recently installed guix for the first time and I wanted to try to
> package my first program. The one I decided to try is written in go and
> uses go.mod (https://github.com/coredns/coredns/blob/master/go.mod) for
> modules. Running `go build` would normally download those if they don't
> exist.
>
> I took a look at a couple of other packages, and it looks like the right
> way to do it would be to package the individual modules as seen in
> guix/gnu/packages/golang.scm. Has anyone tried automating this sort of
> thing? There are almost 40 dependencies...
Thanks for working on this!
It's true, Go programs usually have a dependency graph that is uncomfortably
large — although not impossibly large like Rust.
There is a work-in-progress implementation of a Go package importer that I
believe should make it easier:
https://issues.guix.gnu.org/issue/44178
You could try it out and, if it works for you, send those patches, and give
feedback on the importer as well :)
As for the versioning, the Guix package tree can include multiple versions of a
package. Search for "inherit" in the crates-io.scm package module for some
examples. We would like to improve how this works, again for Go and Rust,
because it's such a common requirement.
- packaging a golang package, Timmy Douglas, 2021/01/08
- Re: packaging a golang package,
Leo Famulari <=
- Re: packaging a golang package, Timmy Douglas, 2021/01/09
- Re: packaging a golang package, Timmy Douglas, 2021/01/11
- Re: packaging a golang package, Helio Machado, 2021/01/17
- Re: packaging a golang package, Timmy Douglas, 2021/01/25
- Re: packaging a golang package, JOULAUD François, 2021/01/25
- Re: packaging a golang package, Helio Machado, 2021/01/25
- Re: packaging a golang package, Katherine Cox-Buday, 2021/01/27
- Re: packaging a golang package, Timmy Douglas, 2021/01/28
- Re: packaging a golang package, Adonay Felipe Nogueira, 2021/01/28
- Re: packaging a golang package, Ludovic Courtès, 2021/01/28