GNU bug report logs -
#45279
[core-updates] copy-recursively does not throw an error on missing directory
Previous Next
To reply to this bug, email your comments to 45279 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#45279
; Package
guix
.
(Wed, 16 Dec 2020 21:27:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Marius Bakke <marius <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 16 Dec 2020 21:27:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
On the 'core-updates' branch, using copy-recursively on a nonexistent
directory does not cause a build failure. Instead an error is printed
and the script continues:
(copy-recursively "doesnotexist" output)
[...]
starting phase `install'
i/o error: doesnotexist: No such file or directory
phase `install' succeeded after 0.0 seconds
This is on cc6cb6e80a42355147809b4830053a34d1563994.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#45279
; Package
guix
.
(Thu, 17 Dec 2020 11:04:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 45279 <at> debbugs.gnu.org (full text, mbox):
Hi,
Marius Bakke <marius <at> gnu.org> skribis:
> On the 'core-updates' branch, using copy-recursively on a nonexistent
> directory does not cause a build failure. Instead an error is printed
> and the script continues:
>
> (copy-recursively "doesnotexist" output)
> [...]
> starting phase `install'
> i/o error: doesnotexist: No such file or directory
> phase `install' succeeded after 0.0 seconds
>
> This is on cc6cb6e80a42355147809b4830053a34d1563994.
I think it’s always been this way. Do you think we should change it?
Thanks,
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#45279
; Package
guix
.
(Thu, 17 Dec 2020 20:25:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 45279 <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> gnu.org> writes:
> Marius Bakke <marius <at> gnu.org> skribis:
>
>> On the 'core-updates' branch, using copy-recursively on a nonexistent
>> directory does not cause a build failure. Instead an error is printed
>> and the script continues:
>>
>> (copy-recursively "doesnotexist" output)
>> [...]
>> starting phase `install'
>> i/o error: doesnotexist: No such file or directory
>> phase `install' succeeded after 0.0 seconds
>>
>> This is on cc6cb6e80a42355147809b4830053a34d1563994.
>
> I think it’s always been this way. Do you think we should change it?
In general, I think it's a good idea to raise errors for things like
this. Warnings that only end up in build logs are likely to go
unnoticed for a long time.
Mark
Information forwarded
to
bug-guix <at> gnu.org
:
bug#45279
; Package
guix
.
(Fri, 18 Dec 2020 03:42:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 45279 <at> debbugs.gnu.org (full text, mbox):
Hi,
On Thu, 17 Dec 2020 at 12:03, Ludovic Courtès <ludo <at> gnu.org> wrote:
> Marius Bakke <marius <at> gnu.org> skribis:
>
>> On the 'core-updates' branch, using copy-recursively on a nonexistent
>> directory does not cause a build failure. Instead an error is printed
>> and the script continues:
>>
>> (copy-recursively "doesnotexist" output)
>> [...]
>> starting phase `install'
>> i/o error: doesnotexist: No such file or directory
>> phase `install' succeeded after 0.0 seconds
>>
>> This is on cc6cb6e80a42355147809b4830053a34d1563994.
>
> I think it’s always been this way. Do you think we should change it?
An example from bug#45308 [1] using ’copy-file’, it raises an error and
so a failure. If ’copy-recursively’ is used instead, it means that the
build would say «success» and print “i/o error:” somewhere in the long
build log, right? Harder to notice.
As The Zen of Python (python -c 'import this') says: :-)
Errors should never pass silently.
Unless explicitly silenced.
All the best,
simon
1: <http://issues.guix.gnu.org/issue/45308>
Information forwarded
to
bug-guix <at> gnu.org
:
bug#45279
; Package
guix
.
(Fri, 10 May 2024 13:27:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 45279 <at> debbugs.gnu.org (full text, mbox):
Hello,
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi,
>
> Marius Bakke <marius <at> gnu.org> skribis:
>
>> On the 'core-updates' branch, using copy-recursively on a nonexistent
>> directory does not cause a build failure. Instead an error is printed
>> and the script continues:
>>
>> (copy-recursively "doesnotexist" output)
>> [...]
>> starting phase `install'
>> i/o error: doesnotexist: No such file or directory
>> phase `install' succeeded after 0.0 seconds
>>
>> This is on cc6cb6e80a42355147809b4830053a34d1563994.
>
> I think it’s always been this way. Do you think we should change it?
Just stumbled on that. I think we should change it, yes. Maybe we need
a core-updates-next branch, uh.
--
Thanks,
Maxim
This bug report was last modified 1 year and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.