GNU bug report logs -
#74900
[PATCH] Replace (guix build json) with (json) in node build system
Previous Next
Full log
View this message in rfc822 format
Hi folks,
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi Daniel,
>
> Daniel Khodabakhsh <d.khodabakhsh <at> gmail.com> skribis:
>
>> This change replaces the use of (guix build json) with (json) for the
>> node ecosystem.
>> Since guile-json is a dependency of Guix, and it's used elsewhere in
>> the project, it makes sense to use this instead of rolling our own
>> JSON implementation with (guix build json).
Thanks for getting the ball rolling! I love this! (and tried doing
exactly this many moons ago, but failed because ISTR guile-json not
being a required dependency of guix back then).
>>
>> (guix build json) also has a few issues:
>> - write-json escapes forward slashes in strings for some reason ("/"
>> become "\/")
>> - read-json produces a structure similar to an association list but
>> with '@' to indicate an object, making it not possible to use
>> association list procedures directly.
>>
>> This is one step to move away from (guix build json), there will be
>> other changes to remove the other uses of it.
Let's focus on the node-build-system as it's relatively uncommon for now
indeed. We could involve the e.g. the python-team (and their branch)
for getting the pyproject-build-system moved over as well after moving
the node-build-system over.
> Thanks for working on this! This is tedious but important work.
>
> Cc’ing Jelle, who knows Node packaging well. Could you take a look,
> Jelle?
I've put this series on top of my list after the node-lts version bump
is merged. Daniel, do you still see yourself working on this to get it
upstreamed in the near future? If not, that is also perfectly fine of
course :)
Thanks,
Jelle
This bug report was last modified 94 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.