From: ludo@gnu.org (Ludovic Courtès)
To: Efraim Flashner <efraim@flashner.co.il>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Making substitute* throw an error if substition failed?
Date: Tue, 18 Oct 2016 14:41:51 +0200 [thread overview]
Message-ID: <87shrtltgw.fsf@gnu.org> (raw)
In-Reply-To: <20161017210836.GF14171@macbook42.flashner.co.il> (Efraim Flashner's message of "Tue, 18 Oct 2016 00:08:36 +0300")
Efraim Flashner <efraim@flashner.co.il> skribis:
> On Mon, Oct 17, 2016 at 10:50:36AM +0200, Ludovic Courtès wrote:
>> Hi,
>>
>> Ricardo Wurmus <rekado@elephly.net> skribis:
>>
>> > it happened a couple of times already that a “substitute*” expression
>> > silently failed and I only found out about it when investigating the
>> > remains of a failing build (“guix build -K”). This can easily happen
>> > when a package is updated and substitutions “anchors” no longer exist in
>> > the updated source code.
>> >
>> > Would it be desirable to change “substitute*” (or replace it) such that
>> > it throws an error or returns a value if substitution failed?
>>
>> “Failed” as in “there were no pattern matches”, right?
>>
>
> Or as in "your regex was bad, try again"
That already happens.
Ludo’.
prev parent reply other threads:[~2016-10-18 12:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 22:05 Making substitute* throw an error if substition failed? Ricardo Wurmus
2016-10-15 7:53 ` Hartmut Goebel
2016-10-15 8:06 ` Danny Milosavljevic
2016-10-15 17:07 ` Alex Kost
2016-10-17 8:50 ` Ludovic Courtès
2016-10-17 21:08 ` Efraim Flashner
2016-10-18 12:41 ` Ludovic Courtès [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87shrtltgw.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=efraim@flashner.co.il \
--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.