From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: Re: NPM importer Date: Tue, 20 Nov 2018 20:58:55 +0100 Message-ID: References: <70F182DB-C157-4763-A4C6-89985545661C@lepiller.eu> <0e5afb2d-c182-6be4-ba2d-6a6f7dd45ac9@riseup.net> <1150DF84-4952-4401-A8D0-3E05A4D0EB74@lepiller.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPCAw-0002pm-Dl for guix-devel@gnu.org; Tue, 20 Nov 2018 14:59:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPCAr-0002OV-Rp for guix-devel@gnu.org; Tue, 20 Nov 2018 14:59:10 -0500 Received: from mx1.riseup.net ([198.252.153.129]:43971) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPCAr-0002Kn-DX for guix-devel@gnu.org; Tue, 20 Nov 2018 14:59:05 -0500 In-Reply-To: <1150DF84-4952-4401-A8D0-3E05A4D0EB74@lepiller.eu> Content-Language: en-US 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: Julien Lepiller , guix-devel@gnu.org, Jelle Licht Hi :) On 2018-11-20 08:50, Julien Lepiller wrote: > Well, minimist is not a small package. I have a small script somewhere that browse the registry to find recursively the list of dependencies of a package. I tried to run it on minimist and I stopped it after a few thousand different packages were found. That's also why we can't make a recursive importer: it would almost never end. > > I think my plan was to build these packages without testing them at all, focusing on packaging test frameworks that will be needed to test other packages. ok. > > See this script that builds a graph of dependencies, ignoring devDependencies (so none of the packages listed by this script is going to be tested): https://framagit.org/tyreunom/guix/snippets/2534 Unfortunately I did not understand how to use the script :/ I got this after wgetting the snippet: scheme@(guile-user)> (load "npm-explorer.scm") digraph dependencies { overlap=false; splines=true; "mocha" -> "supports-color"; "supports-color" -> "has-flag"; "mocha" -> "glob";s "glob" -> "inherits"; "glob" -> "fs.realpath"; "glob" -> "minimatch"; "minimatch" -> "brace-expansion"; "brace-expansion" -> "concat-map"; "brace-expansion" -> "balanced-match"; "glob" -> "path-is-absolute"; "glob" -> "once";ges "once" -> "wrappy";s ^Conce [color=red]; "glob" -> "inflight"; "inflight" -> "once"; "inflight" -> "wrappy"; "mocha" -> "mkdirp"; "mkdirp" -> "minimist"; "mocha" -> "commander"; "mocha" -> "he";ages "mocha" -> "diff";es "mocha" -> "minimatch"; "mocha" -> "escape-string-regexp"; "mocha" -> "growl";s "mocha" -> "debug";s "debug" -> "ms";ages "mocha" -> "browser-stdout"; } $1 = #t Can you explain how to use it? > > Not testing these packages is maybe less problematic than not testing other kinds of packages because we are packaging the same thing as developpers test, in a similar environment. It sounds like a good start. This mess is not a situation we created, we do our best to shoehorn these packages into a reproducible environment that the js-devs does not really care about or gave up on long ago. Even if we succeed to build every major Node web app in a few years it is not certain that the js-devs or the users are going to use them. But we can hope and enjoy them ourselves :D > > I'll push what I have to a wip-branch latter today. The reason why I develop out-of-tree is because I can always rebase my patches. That would be nice. I did not see it yet in the list http://git.savannah.gnu.org/cgit/guix.git/refs/heads BTW: Did you see that Jelle did two commits after your fork? https://github.com/jellelicht/guix/commits/wip-node-build-system -- Cheers Swedebugia