From: <pkill9@runbox.com>
To: guix-devel <guix-devel@gnu.org>
Subject: Change syntax of '--with-source' flag to match syntax of '--with-commit' flag?
Date: Thu, 07 Feb 2019 07:36:34 +0000 (GMT) [thread overview]
Message-ID: <E1greEc-0007OZ-DK@rmmprod07.runbox> (raw)
The '--with-commit' flag changes the source used to build a package, the syntax takes the form of '--with-commit=<package>=<commit>'.
The '--with-source' flag also changes the source, but uses the syntax '--with-source=<url or file>', but only transforms the top-level package (e.g. `guix build <top-level package>` or `guix environment --ad-hoc `<top-level package>`). It also only works if the new source file has the form '<package name>-<package version>.<extension>', which means if a package source URL isn't named in that way, then you have to first download it, rename it to fit that template, then use --with-source with that file.
I propose changing the syntax of '--with-source=' to match the syntax of '--with-commit='. This would have the following benefits:
- No need to download and rename files that don't fit the '<package name>-<package version>.<extension>' format.
- Able to change the source file of a package input of any package in the package graph.
- Makes the syntax consistent with '--with-commit='.
What do other people think?
reply other threads:[~2019-02-07 7:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=E1greEc-0007OZ-DK@rmmprod07.runbox \
--to=pkill9@runbox.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.