GNU bug report logs - #34651
guix commands should print a message, if they produce only trivial output by default

Previous Next

Package: guix;

Reported by: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>

Date: Mon, 25 Feb 2019 16:26:01 UTC

Severity: normal

To reply to this bug, email your comments to 34651 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#34651; Package guix. (Mon, 25 Feb 2019 16:26:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 25 Feb 2019 16:26:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>
To: <bug-guix <at> gnu.org>
Subject: guix commands should print a message, if they produce only trivial
 output by default
Date: Mon, 25 Feb 2019 17:24:56 +0100
[Message part 1 (text/plain, inline)]
I noticed that if you call "guix COMMAND" for some COMMANDs without any
options given, they produce something which is not very useful to the
user. I first noticed it with guix pack:

When "guix pack" is run without any options, it builds an empty pack:

$ guix pack
/gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz
$ tar tzvf /gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz
drwxrwxr-t root/root         0 1970-01-01 01:00 ./gnu/store/
dr-xr-xr-x root/root         0 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/
dr-xr-xr-x root/root         0 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/
-r--r--r-- root/root       414 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/profile
-r--r--r-- root/root        37 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/manifest

I think from a user perspective it would be better to print a help
message and not build an empty pack.

On the other hand, I tried out other guix commands and at least it is a
consistent behaviour, they start with the default values, like "guix
graph" outputs just an empty graph.

"guix system" complains it needs a subcommand, which is a different
case.

But then again we have this complaint:

guix system container
guix system: error: wrong number of arguments for action 'container'

WDYT?

Björn
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34651; Package guix. (Fri, 01 Mar 2019 17:30:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: swedebugia <swedebugia <at> riseup.net>
To: bug-guix <at> gnu.org,
 Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>,
 34651 <at> debbugs.gnu.org
Subject: Re: bug#34651: guix commands should print a message,
 if they produce only trivial output by default
Date: Fri, 01 Mar 2019 18:29:04 +0100
[Message part 1 (text/plain, inline)]
"Björn Höfling" <bjoern.hoefling <at> bjoernhoefling.de> skrev: (25 februari 2019 17:24:56 CET)
>I noticed that if you call "guix COMMAND" for some COMMANDs without any
>options given, they produce something which is not very useful to the
>user. I first noticed it with guix pack:
>
>When "guix pack" is run without any options, it builds an empty pack:
>
>$ guix pack
>/gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz
>$ tar tzvf
>/gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz
>drwxrwxr-t root/root         0 1970-01-01 01:00 ./gnu/store/
>dr-xr-xr-x root/root         0 1970-01-01 01:00
>./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/
>dr-xr-xr-x root/root         0 1970-01-01 01:00
>./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/
>-r--r--r-- root/root       414 1970-01-01 01:00
>./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/profile
>-r--r--r-- root/root        37 1970-01-01 01:00
>./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/manifest
>
>I think from a user perspective it would be better to print a help
>message and not build an empty pack.
>
>On the other hand, I tried out other guix commands and at least it is a
>consistent behaviour, they start with the default values, like "guix
>graph" outputs just an empty graph.
>
>"guix system" complains it needs a subcommand, which is a different
>case.
>
>But then again we have this complaint:
>
>guix system container
>guix system: error: wrong number of arguments for action 'container'
>
>WDYT?
>
>Björn

I think we should print helpful hints or the contents of --help in these situations. 
-- 
Sent from my k-9 mail for Android.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34651; Package guix. (Fri, 01 Mar 2019 17:30:02 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 103 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.