From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: Re: Naming of node packages with @ and / Date: Wed, 28 Nov 2018 12:21:59 +0100 Message-ID: References: <6d747c3a-af63-c222-c913-3355be92ac43@riseup.net> 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]:41100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRxp5-0000GZ-Ad for guix-devel@gnu.org; Wed, 28 Nov 2018 06:16:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRxp2-0002xy-NK for guix-devel@gnu.org; Wed, 28 Nov 2018 06:16:03 -0500 Received: from mx1.riseup.net ([198.252.153.129]:60146) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gRxp2-0002xG-Cp for guix-devel@gnu.org; Wed, 28 Nov 2018 06:16:00 -0500 In-Reply-To: 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: Catonano Cc: guix-devel On 2018-11-28 00:10, Catonano wrote: > > > Il giorno mar 27 nov 2018 alle ore 21:58 swedebugia > > ha scritto: > > Hi > > There are some crazy naming going on in the node-community. How do we > deal with this? > > Note: there is another package called "babel-core" so just > stripping/replacing the weird characters won't work well. > > Any ideas? snip > I think those are the so called "scoped packages" > > https://docs.npmjs.com/misc/scope > > https://nitayneeman.com/posts/understanding-scoped-packages-in-npm/ Aha! This makes sense. The importer and guix package will have to handle this. E.g. this way: guix import npm -S babel babe-core where -S is "scope". We will probably have to add a field or property to our (package) record stating that it is part of a scope: (properties `((scope . babel))) guix package will have to support it too: guix package -i -S babel babel-core What do you think? Any better ways to handle this? -- Cheers Swedebugia