all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "Gábor Boskovits" <boskovits@gmail.com>, 34613@debbugs.gnu.org
Subject: [bug#34613] Acknowledgement ([PATCH] gnu: Add prometheus.)
Date: Tue, 12 Mar 2019 08:03:55 +0100	[thread overview]
Message-ID: <878sxkh8v8.fsf@ambrevar.xyz> (raw)
In-Reply-To: <87k1h5rr3k.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]


> > (Should we package the stuff there, and link the sources into the tree?)
>
> I think we generally do that yes.  Pierre, Leo?

We used to, but since Go 1.10 there is a bug in the compiler which keeps tracks
of _all_ recursive dependencies in the resulting _static_ binary.  This can
result in a ridiculously large closure size.

As for now, I'd recommend the following:

- If there are many dependencies (check the vendor/ folder), use it, it will be
  easier and produce a package with an ideal closure size.

- If it's only a few dependencies, it's probably worth it to package all of them
  independently.

> > I am willing to do the work, but I need some pointer, as I am not into go.
>
> I’m ignorant about Go, but hopefully Pierre, Leo, or someone else with
> experience with Go packaging can provide some guidance!

For a Go package with unvendored deps, I suggest you look at "demlo", it's
reasonably easy to understand.  For vendored deps, look at go-ipfs.

The Go build system does most things right.  A few pointers:

- Prometheus might use its own build system, e.g. with a Makefile.  Then you'll
  have to read the makefile to know what it's doing.

- In Go, it's possible to include multiple packages in the same repository.  Our
  Go build system does not handle this very well and it's not possible to use
  multiple such packages as dependencies: you need to create a union.  See
  go-golang-org-x-crypto-union.

Let me know if you need more help, I can look into it.

Good luck!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2019-03-12  7:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-22 11:45 [bug#34613] [PATCH] gnu: Add prometheus Gábor Boskovits
     [not found] ` <handler.34613.B.155083599830524.ack@debbugs.gnu.org>
2019-02-22 12:21   ` [bug#34613] Acknowledgement ([PATCH] gnu: Add prometheus.) Gábor Boskovits
2019-03-11 22:19     ` Ludovic Courtès
2019-03-12  7:03       ` Pierre Neidhardt [this message]
2019-03-12 19:31         ` Leo Famulari
2019-03-12 21:24         ` Gábor Boskovits
2019-03-12 21:29       ` Gábor Boskovits
2019-03-13 10:06         ` Ludovic Courtès
2019-03-13 12:33           ` Gábor Boskovits
2019-03-18  8:31             ` Ludovic Courtès
2022-04-07 12:29 ` [bug#34613] [PATCH] gnu: Add prometheus zimoun
2022-10-08 14:42   ` zimoun
2022-10-18 16:18     ` bug#34613: " zimoun

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=878sxkh8v8.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=34613@debbugs.gnu.org \
    --cc=boskovits@gmail.com \
    --cc=ludo@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.