Re: packaging a golang package

2021-01-28 Thread adfeno--- via
Em 28/01/2021 13:03, Ludovic Courtès escreveu: > IMO, ‘guix import’ does not “steer users towards obtaining any nonfree > information” any more than wget does. It’s a tool for packagers that > returns a package definition or template thereof, and it’s up to the > packager to decide what to do with

Re: packaging a golang package

2021-01-28 Thread Ludovic Courtès
Hi, adfeno--- via skribis: > If by vendoring we mean bundling and also make users fetch data from places > not explicitly committed to the GNU FSDG, then allow me to jump in to add > some important notes. > > Em 27/01/2021 11:31, Katherine Cox-Buday escreveu: >> As a packager for a distributio

Re: packaging a golang package

2021-01-28 Thread adfeno--- via
If by vendoring we mean bundling and also make users fetch data from places not explicitly committed to the GNU FSDG, then allow me to jump in to add some important notes. Em 27/01/2021 11:31, Katherine Cox-Buday escreveu: > As a packager for a distribution, I dislike vendoring because of the >

Re: packaging a golang package

2021-01-28 Thread Timmy Douglas
Katherine Cox-Buday writes: > Hello again, François! I've redirected this thread to guix-devel, and > the bug since we've begun discussing implementation details. > > JOULAUD François writes: > >> First is to use vendored dependencies (when upstream provides them). This >> one has the merits of

Re: packaging a golang package

2021-01-27 Thread Katherine Cox-Buday
Hello again, François! I've redirected this thread to guix-devel, and the bug since we've begun discussing implementation details. JOULAUD François writes: > First is to use vendored dependencies (when upstream provides them). This > one has the merits of simplicity (as we just have to download

Re: packaging a golang package

2021-01-25 Thread Helio Machado
(Quick note: my patches follow the third approach, not the second) On Mon, 25 Jan 2021 at 21:49, JOULAUD François < francois.joul...@radiofrance.com> wrote: > Hello, > > On Sun, Jan 17, 2021 at 02:31:39PM +0100, Helio Machado wrote: > > Looks like it ran into the replace syntax and didn't parse i

Re: packaging a golang package

2021-01-25 Thread Francois . JOULAUD--- via
Hello, On Sun, Jan 17, 2021 at 02:31:39PM +0100, Helio Machado wrote: > Looks like it ran into the replace syntax and didn't parse it correctly? > > https://golang.org/ref/mod#go-mod-file New version of the patch on https://issues.guix.gnu.org/issue/44178#10 fixes some of those problems. There is

Re: packaging a golang package

2021-01-24 Thread Timmy Douglas
Helio Machado <0x2b3b...@gmail.com> writes: > So it seems. I'll debug it as soon as I can; the import process is > unbearably long. let me know what you find out--i can give it another try when you're ready. >> I sort of wonder if the `git-fetch` portion of go packages should be >> something lik

Re: packaging a golang package

2021-01-19 Thread jgart
There's also an emacs package by Ryan Prior to help with the tedium of packaging go dependencies: https://github.com/ryanprior/emacs-guix-packaging from the README: Some packages are complex due to a large number of transitive dependencies. I've found this to be true of software in the golang e

Re: packaging a golang package

2021-01-17 Thread Helio Machado
Hi! Looks like it ran into the replace syntax and didn't parse it correctly? > https://golang.org/ref/mod#go-mod-file So it seems. I'll debug it as soon as I can; the import process is unbearably long. I sort of wonder if the `git-fetch` portion of go packages should be > something like `git-fe

Re: packaging a golang package

2021-01-10 Thread Timmy Douglas
I also tried Helio's branch, rebased on the latest, with the following changes: diff --git a/guix/import/go-modules.scm b/guix/import/go-modules.scm index 20fc5c9642..811c9f60ae 100644 --- a/guix/import/go-modules.scm +++ b/guix/import/go-modules.scm @@ -290,7 +290,7 @@ VERSION, MODULE-INPUTS, H

Re: packaging a golang package

2021-01-09 Thread Timmy Douglas
"Leo Famulari" writes: > 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)

Re: packaging a golang package

2021-01-09 Thread raingloom
On Thu, 07 Jan 2021 23:01:49 -0800 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 `g

Re: packaging a golang package

2021-01-08 Thread Leo Famulari
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 bui