Subject: [bug#50072] [PATCH WIP 0/4] Add upstream updater for git-fetch origins.

From: Maxime Devos <[email-masked]>
Date: Thu, 06 Jan 2022 11:32:00 +0100

Ludovic Courtès schreef op do 06-01-2022 om 11:13 [+0100]:
> That #:serializer would have a default value, probably “none”, but no
> “auto-detection” as this amount of guessing would make for a fragile
> interface IMO.

The auto-detection could be put into a separate procedure

(define (guess-nar-or-none-serializer file) ; to be renamed
  (if directory?
      'nar
      'none))

so that 'file-hash*' is not fragile, but auto-detection can still
happen if explicitely asked for:

  (file-hash* file #:serializer (guess-nar-or-serializer file))

WDYT?