From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: Re: NPM importer Date: Tue, 20 Nov 2018 08:50:15 +0100 Message-ID: <1150DF84-4952-4401-A8D0-3E05A4D0EB74@lepiller.eu> References: <70F182DB-C157-4763-A4C6-89985545661C@lepiller.eu> <0e5afb2d-c182-6be4-ba2d-6a6f7dd45ac9@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP0nl-0004C8-N1 for guix-devel@gnu.org; Tue, 20 Nov 2018 02:50:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gP0ni-0003Cl-If for guix-devel@gnu.org; Tue, 20 Nov 2018 02:50:29 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]:36778) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gP0ni-00039W-7v for guix-devel@gnu.org; Tue, 20 Nov 2018 02:50:26 -0500 In-Reply-To: <0e5afb2d-c182-6be4-ba2d-6a6f7dd45ac9@riseup.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia , guix-devel@gnu.org Well, minimist is not a small package=2E I have a small script somewhere th= at browse the registry to find recursively the list of dependencies of a pa= ckage=2E I tried to run it on minimist and I stopped it after a few thousan= d different packages were found=2E That's also why we can't make a recursiv= e importer: it would almost never end=2E I think my plan was to build these packages without testing them at all, f= ocusing on packaging test frameworks that will be needed to test other pack= ages=2E See this script that builds a graph of dependencies, ignoring devDependenc= ies (so none of the packages listed by this script is going to be tested): = https://framagit=2Eorg/tyreunom/guix/snippets/2534 Not testing these packages is maybe less problematic than not testing othe= r kinds of packages because we are packaging the same thing as developpers = test, in a similar environment=2E I'll push what I have to a wip-branch latter today=2E The reason why I dev= elop out-of-tree is because I can always rebase my patches=2E Le 20 novembre 2018 00:29:02 GMT+01:00, swedebugia a =C3=A9crit : >On 2018-11-11 16:37, Julien Lepiller wrote: >> I improved a bit over jlicht's work here, but there still a few >tgings we want co work on: https://framagit=2Eorg/tyreunom/guix/tree/npm >>=20 >> There is an importer and a build system as well as a few packages=2E >One of tge issue is that the importer is not recursive, so it doesn't >get the specified version, and the packages aren't tested because the >tests depend on cylic dependencies (and sometimes very big circles)=2E > >Ok=2E >Is there a reason to have this out-of-tree? >Could you push it to a wip-npm branch in guix? > >Some npm packages has no or almost no dependencies=2E >E=2Eg=2E https://github=2Ecom/substack/minimist/blob/master/package=2Ejso= n > >These we could start with if the build-system works and incrementally=20 >improve the build-system and the complexity of added packages=2E > >Thoughts?