unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Store channel specification in profile
Date: Wed, 4 Mar 2020 14:24:41 +0100	[thread overview]
Message-ID: <CAJ3okZ1YdR82XPTjyinTUPOSZjcZmU1af5iHO7o-mODcoH6zag@mail.gmail.com> (raw)
In-Reply-To: <875zfkczij.fsf@ambrevar.xyz>

Hi Pierre,

On Wed, 4 Mar 2020 at 09:09, Pierre Neidhardt <mail@ambrevar.xyz> wrote:
>
> zimoun <zimon.toutoune@gmail.com> writes:
>
> >> I sorted the export so that it produces a reproducible output, which is
> >> more version-control friendly.
> >
> > IMHO, the sort would not be too expensive; even on all the packages
> > that Guix already includes now. ;-)
> > So, it does not matter too much, I guess.
>
> I think we are talking about different things :)

We are talking about the same thing. :-)
I am just saying that even if a profile is full of all the packages
that exists on Earth for Guix, then sorting will not be too
costly---if the 'sort' function in Guile is the state-of-art of
sorting, say merge-sort or quick-sort or tim-sort.


> What I meant is that if you keep the exported specs under version
> control, you will want the packages to be in the same order every time.

I agree.


> Other wise, you could very well have
>
> A
> B
> C
>
> then on next export
>
> A
> C
> B
>
> which is the same, but will warrant another commit in your repository
> (for no good reason).
> Ideally, we would like to avoid useless  commits.
>
> > However, the manifest returned is not necessary functional because the
> > pkg1@v1 and pkg2@v2 are not necessary provided by the same commit.
> > Therefore we could imagine "options" to the '--export' command, as
> > '--export=full' or '--export=light' etc. And even '--export=sorted'
> > and maybe combined as '--export=light,sorted'.
>
> As you mentioned in the other email, I think a more convenient solution
> to this is to use the format that I suggested which will include the
> provenance.

I do not remember exactly the format but I do remember our discussion
at the Guix Days.:-)
And I agree. :-)

> This will save the use from having to deal with too many CLI parameters.

Well, I was suggesting options for the CLI '--export' which was the
Ludo's suggestion.
These options are almost nothing to do once the exporter is done
(roughly your script sent elsewhere in this thread).
It is complementary to this very format, IMHO.


> Which I'm still against.  I find that including the specs within the
> profile is a much better idea: less effort, plus it ties the spec to a
> profile, thus giving a relationship guarantee to the user.

Well, I do not understand the '--export' suggestion as a replacement
of the format specification but I do understand it as an easy move
that improves the current situation. :-)

Cheers,
simon

  reply	other threads:[~2020-03-04 13:24 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 14:55 Store channel specification in profile Pierre Neidhardt
2019-11-26 16:40 ` Konrad Hinsen
2019-11-26 19:12   ` Pierre Neidhardt
2019-11-26 19:35     ` Konrad Hinsen
2019-12-02 15:58       ` zimoun
2019-12-09 17:11   ` Ludovic Courtès
2019-12-09 17:21     ` Pierre Neidhardt
2019-12-12 19:50       ` zimoun
2019-12-12 22:35         ` Pierre Neidhardt
2019-12-13 12:16           ` zimoun
2019-12-19 16:12             ` Ludovic Courtès
2019-12-19 17:18               ` zimoun
2020-01-06 20:07         ` Pierre Neidhardt
2020-01-06 21:09           ` zimoun
2020-01-08 15:17             ` Pierre Neidhardt
2020-01-08 19:31               ` zimoun
2020-01-11 23:48               ` Ludovic Courtès
2020-01-13 14:02                 ` Pierre Neidhardt
2020-01-13 14:46                   ` zimoun
2020-01-13 14:37                 ` zimoun
2020-01-13 14:59                   ` Pierre Neidhardt
2020-01-13 15:53                     ` zimoun
2020-01-13 16:53                       ` Pierre Neidhardt
2020-01-30 19:24                         ` Pierre Neidhardt
2020-01-31  8:51                           ` zimoun
2020-01-31  9:21                           ` Konrad Hinsen
2020-01-31 11:21                             ` Pierre Neidhardt
2020-01-31 12:15                               ` Pierre Neidhardt
2020-01-31 16:01                                 ` Konrad Hinsen
2020-02-05 11:08                           ` Ludovic Courtès
2020-02-06 10:59                             ` Pierre Neidhardt
2020-02-07 21:28                               ` Ludovic Courtès
2020-02-08 17:09                                 ` Pierre Neidhardt
2020-02-11 14:10                                   ` Ludovic Courtès
2020-02-11 14:18                                     ` Pierre Neidhardt
2020-02-24 16:16                                       ` Ludovic Courtès
2020-02-25 10:32                                         ` Pierre Neidhardt
2020-03-03 21:43                                           ` zimoun
2020-03-04  8:09                                             ` Pierre Neidhardt
2020-03-04 13:24                                               ` zimoun [this message]
2020-03-03 21:49                                         ` 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

  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=CAJ3okZ1YdR82XPTjyinTUPOSZjcZmU1af5iHO7o-mODcoH6zag@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=mail@ambrevar.xyz \
    /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).