unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Gabriel Arazas <christiangabrielarazas@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Some concerns on the current situation on Go packaging
Date: Wed, 28 Sep 2022 10:27:06 -0400	[thread overview]
Message-ID: <87mtajwp51.fsf@gmail.com> (raw)
In-Reply-To: <1da83070-e85d-8223-646a-6a50215b88b5@gmail.com> (Gabriel Arazas's message of "Tue, 27 Sep 2022 23:51:42 +0800")

Hi Gabriel,

Gabriel Arazas <christiangabrielarazas@gmail.com> writes:

> Hello! I'm a bit concerned about the current situation of packaging of
> Go applications in Guix.
>
> Go modules also use semantic versioning [1] similarly to Rust
> packages. In Guix, some of the Rust packages are packaged with
> different versions [2]. This is nice (and tedious) as applications are
> more likely to work as intended.
>
> However, there doesn't seem to be documented practice of packaging
> different versions for Go applications. The lack of such section from
> the manual also gives an additional impression unlike Rust packaging
> [2]. I don't know much examples that can be found committed in Guix
> repo but this makes adding Go applications to be more of a pain. I
> mean packaging Rust apps is also a pain as much as packaging Go apps
> (at least in my experience) but at least there are some explicit
> guidelines you can follow which is also present when exploring the
> code.
>
> For example, I'm about to package gum [3] and it needs a different
> version of termenv (some commit after 0.11.0) compared to the packaged
> version in Guix (0.8.1). I'm very tempted to add a different package
> for it with a different version (which is thankfully easy to add).

What I would do here is update termenv to latest, and try to use it with
your new gum packaging.  Chances are it'll work.  You'll want to rebuild
the other packages affected by the update, which you can get a list via
`./pre-inst-env guix refresh -l termenv`.  I think since this package is
at 0.11.0, it hasn't yet reached a stable release (1.x.x).

> In the long term, I'm more concerned about adding and maintaining of
> these applications. I thought I should point them out and hopefully
> get the community to reach to a consensus for Go packaging. Or is
> there already some initiatives (or a consensus or even some
> discussions) that I missed?

We favor using the latest version of everything, as long as there is a
strong reason not to (e.g., a test suite failing or the software not
compiling).  This means less packages definitions, which should be
easier to maintain.  For Go, I think it'd make sense to carry the latest
version of a package as well as any previous *major* version that may be
*required* by other packages.

I hope this helps,

Thanks,

Maxim


      reply	other threads:[~2022-09-28 15:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-27 15:51 Some concerns on the current situation on Go packaging Gabriel Arazas
2022-09-28 14:27 ` Maxim Cournoyer [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=87mtajwp51.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=christiangabrielarazas@gmail.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 public inbox

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

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