From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: 'package-name-version' and 'strip-store-file-name' does the same thing with different ways Date: Sat, 20 Oct 2018 15:57:34 +0200 Message-ID: <87woqc90vl.fsf@gnu.org> References: <875zy3j9k9.fsf@gmail.com> <874ldmgl8p.fsf@gnu.org> <87a7ndfszf.fsf@gmail.com> <877eiegi2m.fsf@gnu.org> <871s8l2evi.fsf@elephly.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]:37068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDrl3-0006f2-EF for guix-devel@gnu.org; Sat, 20 Oct 2018 09:57:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDrl2-0000Yy-N6 for guix-devel@gnu.org; Sat, 20 Oct 2018 09:57:37 -0400 In-Reply-To: <871s8l2evi.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 20 Oct 2018 10:37:05 +0200") 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: Ricardo Wurmus Cc: guix-devel@gnu.org Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: >>> Similarly, 'file-sans-extension' are defined in both (guix utils) and >>> (guix build guile-build-system). They are both the same. Should we move >>> them to (guix build utils) as well? >> >> Yes, sounds like a good idea! > > =E2=80=98file-sans-extension=E2=80=99 is used on the host-side, e.g. in s= cripts/build.scm. > Is it still fine to move it to a build-side module only? I think so because in practice we already use (guix build utils) quite a lot on the =E2=80=9Chost side=E2=80=9D. More generally, while I think it=E2=80=99s important to arrange things so t= hat we don=E2=80=99t end up importing all of Guix on the build side, the advant= age of using the same language on both sides is that we can share code. I think we should take advantage of it when there are no downsides. Ludo=E2=80=99.