unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Josselin Poiret <dev@jpoiret.xyz>,
	Ekaitz Zarraga <ekaitz@elenq.tech>,
	55833@debbugs.gnu.org, othacehe@gnu.org
Subject: bug#55833: cross-base error: wrong type argument in position 1
Date: Wed, 08 Jun 2022 15:12:00 +0200	[thread overview]
Message-ID: <7a7d7becd3cfb7f05c3e04fbbc98b04250b297f9.camel@telenet.be> (raw)
In-Reply-To: <877d5rwigy.fsf@jpoiret.xyz>

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

Josselin Poiret schreef op wo 08-06-2022 om 12:35 [+0200]:
> I don't think we should deviate from the usual behaviour of a procedure
> returning #f it wasn't able to find the thing it was searching for.
> Ideally, cross-libc should take a platform argument itself, so that we
> can lookup the target earlier and throw an exception there instead.

Wait my proposal cannot work as-is because linux-architecture=#false
for Hurd platforms ...

FWIW, I think the current usual behaviour is not ideal, and that these
kind of procedures should raise an exception instead, like
specification->package:

scheme@(guix-user)> (specification->package "foobar")
guix repl: fout: foobar: onbekend pakket ; <-- unknown package

Or search-input-file or search-input-directory.

Maybe it could raise a &non-linux-platform condition like
search-input-file raises &search-error condition?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  parent reply	other threads:[~2022-06-08 13:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-07 15:43 bug#55833: cross-base error: wrong type argument in position 1 Ekaitz Zarraga
2022-06-07 18:33 ` Maxime Devos
2022-06-08 10:35   ` Josselin Poiret via Bug reports for GNU Guix
2022-06-08 13:06     ` Maxime Devos
2022-06-08 13:12     ` Maxime Devos [this message]
2022-06-08 16:29   ` Ekaitz Zarraga
2022-06-08 17:11     ` Ekaitz Zarraga

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a7d7becd3cfb7f05c3e04fbbc98b04250b297f9.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=55833@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    --cc=ekaitz@elenq.tech \
    --cc=othacehe@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).