all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Griffin <a@ajgrf.com>
To: guix-devel@gnu.org
Subject: Re: Go & bundling
Date: Mon, 25 Jul 2016 23:06:14 -0500	[thread overview]
Message-ID: <1469505974.2463655.676750633.7062B3FE@webmail.messagingengine.com> (raw)
In-Reply-To: <CAJ98PDwWTWOKNL+dG9456UEVJZ4+nxTVTxyPj51vZ+LyDUC8XQ@mail.gmail.com>

Leo Famulari <leo@famulari.name> wrote:
> If that manifest is a standard thing, we could make a go-importer that
> used it to create new packages.

The manifest is not standardized, or rather, there are too many
competing standards.

On Mon, Jul 25, 2016, at 08:56 PM, Catonano wrote:
> The "new packages" indicated in the manifest could, in turn, have bundled dependencies. So the importer should be a recursive one.
> Like the one that Jelle is using for npm. 
> 
> Right ?

If we are going to unbundle packages, I think it would be best if our
code ignored any manifest files entirely. Versioning is a mess in the Go
ecosystem, and usually the version specified in them only reflects the
most recent commit that the developers had on their machine when they
ran the vendor command. Rarely is it an actual tagged, stable release.

BTW, the following command will probably be useful. It lists the
dependencies of the current package (whose source is in the current
directory), minus the stdlib.

    go list -f '{{join .Deps "\n"}}' | xargs go list -f '{{if not
    .Standard}}{{.ImportPath}}{{end}}'

I hope that helps!
-- 
Alex Griffin

  reply	other threads:[~2016-07-26  4:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11 21:36 Go build system Leo Famulari
2016-07-24 22:25 ` Ludovic Courtès
2016-07-25  8:47   ` Andy Wingo
2016-07-25 19:50   ` Leo Famulari
2016-07-25 22:05     ` Go & bundling Ludovic Courtès
2016-07-26  1:56       ` Catonano
2016-07-26  4:06         ` Alex Griffin [this message]
2016-07-26 12:07           ` Alex Griffin
2016-08-02 20:50           ` Leo Famulari
2016-07-26  6:33     ` Go build system Christopher Baines
2016-08-02 20:42       ` Leo Famulari

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

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

  git send-email \
    --in-reply-to=1469505974.2463655.676750633.7062B3FE@webmail.messagingengine.com \
    --to=a@ajgrf.com \
    --cc=guix-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.