From: zimoun <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Unexpected --export-manifest with simple transformations
Date: Thu, 11 Feb 2021 06:33:45 +0100 [thread overview]
Message-ID: <86k0rf9nie.fsf@gmail.com> (raw)
In-Reply-To: <87sg63zfvp.fsf@gnu.org>
Hi Ludo,
On Thu, 11 Feb 2021 at 00:01, Ludovic Courtès <ludo@gnu.org> wrote:
> That’s because when using ‘-m’, transformations are not recorded.
Yes. The question is: is it a conscientious choice or a missing
feature?
It makes sense to save the transformations from a manifest, IMHO. But
it is not clear what should be the good solution for that because it is
not easy for the general case; from my understanding.
For instance, one could easily imagine this (restricted) typical
manifest with transformation,
--8<---------------cut here---------------start------------->8---
(use-modules (guix transformations))
(define transform1
(options->transformation
'((with-c-toolchain . "hello=gcc-toolchain@10"))))
(packages->manifest
(list (transform1 (specification->package "hello"))
(specification->package "python-numpy")
(specification->package "python")))
--8<---------------cut here---------------end--------------->8---
should record the transformation in <profile>/manifest. Motivated by
1. consistency with the «equivalent» command-line and 2. the use-case
“guix pack -f docker --save-provenance -m’.
Other said, the option ’-m + --export-manifest’ should be a fixed-point,
IMHO.
For example, ’package->manifest-entry*’ is "Like
'package->manifest-entry', but attach PACKAGE provenance meta-data to
the resulting manifest entry." (I have not tried.) Therefore, we could
have something similar with ’options->transform’, i.e., attach somehow
meta-data.
Well, because the feature is missing, the story about #2 is incomplete.
And I would like to have a self-reproducible Docker image produced by
‘guix pack’.
This “missing feature“, is it a conscientious choice or an use-case not
thought yet?
WDYT?
Cheers,
simon
next prev parent reply other threads:[~2021-02-11 6:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-10 1:36 Unexpected --export-manifest with simple transformations zimoun
2021-02-10 23:01 ` Ludovic Courtès
2021-02-11 5:33 ` zimoun [this message]
2021-02-22 22:41 ` Ludovic Courtès
2021-02-25 14:48 ` 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=86k0rf9nie.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--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 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).