all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#53030: Can't (specification->package "package@version:output")
@ 2022-01-05 17:18 calcium via Bug reports for GNU Guix
  2022-01-05 20:36 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 1 reply; 2+ messages in thread
From: calcium via Bug reports for GNU Guix @ 2022-01-05 17:18 UTC (permalink / raw)
  To: 53030

The syntaxe to specify a package version and desired output
only works on guix install package@version:output

guix remove package@version:output doesn't works
guix remove package@version doesn't works

(specification->package "package@version") works
(specification->package "package:output") works

but both (specification->package "packge@version:output") doesn't work.
/etc/config.scm:line:col: Throw to key `quit' with args `(1)'.

Even though
guix package --export-manifest
;; => (specifications->manifest (list "package@version:output" "package@version"))

I tested "package@version:output" using "openjdk@11:doc"





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#53030: Can't (specification->package "package@version:output")
  2022-01-05 17:18 bug#53030: Can't (specification->package "package@version:output") calcium via Bug reports for GNU Guix
@ 2022-01-05 20:36 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2022-01-05 20:36 UTC (permalink / raw)
  To: calcium; +Cc: 53030

[-- Attachment #1: Type: text/plain, Size: 1700 bytes --]

Calcium,

Thanks for the report!

In future, please submit separate issues separately, it helps keep 
discussion, er, separate.  It's easier to merge issues than to 
split them.

> Can't (specification->package "package@version:output")

Short answer: it is not intended to work.  Use 
specification->package+output if you want outputs.  This is not a 
bug but a design decision.  Which are not above critique, but 
guix-devel@ might be a better place for that.

I've considered in the past to submit a cheeky patch silently 
renaming specification->package+ouput to specification->package, 
just to avoid this FAQ.  It should be almost perfectly backwards 
compatible in that no existing code should break with the same 
input.

However I think clarity the greater value here, and did not submit 
such a patch.

calcium via Bug reports for GNU Guix 写道:
> The syntaxe to specify a package version and desired output
> only works on guix install package@version:output
>
> guix remove package@version:output doesn't works

I cannot reproduce this:

  $ guix install git@2.34.0:send-email
  $ guix remove git@2.34.0:send-email
  $

Can you provide an example?

> guix remove package@version doesn't works

‘package@version’ means ‘package@version:out’, not (a 
hypothetical) ‘package@version:*’ wildcard.  It neither installs 
nor removes ‘all outputs’.

I did notice that, e.g.,

  $ guix install git@2:send-email
  $ guix remove git@2:send-email
  guix remove: error: package 'git@2:send-email' not found in 
  profile
  $

is asymmetrical.  I wonder if there are any drawbacks to making it 
work.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-05 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-05 17:18 bug#53030: Can't (specification->package "package@version:output") calcium via Bug reports for GNU Guix
2022-01-05 20:36 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix

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.