GNU bug report logs -
#41219
Enforce "files" directive in node build system
Previous Next
Reported by: goodoldpaul <at> autistici.org
Date: Tue, 12 May 2020 21:27:01 UTC
Severity: normal
Done: Jelle Licht <jlicht <at> fsfe.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Jelle,
just a quick follow up that I forgot yesterday.
>>> + (map (lambda (path)
>>> + (string-drop path 2))
>> ^
>> If this is meant to drop the "./" prefix, you
>> should be able to leave it out.
>>
This seems to be necessary because given the way glob-match? is
implemented a string matches a pattern iif either they start with the
same character or the pattern starts with a wildcard. So for example:
scheme@(guix-user)> ,use (guix glob)
scheme@(guix-user)> (string->compiled-sglob "*.json")
$1 = (* ".json")
scheme@(guix-user)> (string->compiled-sglob "package.json")
$2 = "package.json"
scheme@(guix-user)> (glob-match? $1 "./package.json")
$3 = #t
scheme@(guix-user)> (glob-match? $2 "./package.json")
$4 = #f
Thank you again for your help,
Cheers
Giacomo
This bug report was last modified 4 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.