From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Change syntax of '--with-source' flag to match syntax of '--with-commit' flag? Date: Thu, 07 Feb 2019 07:36:34 +0000 (GMT) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1greEr-00028O-QO for guix-devel@gnu.org; Thu, 07 Feb 2019 02:36:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1greEo-0005ql-9E for guix-devel@gnu.org; Thu, 07 Feb 2019 02:36:47 -0500 Received: from aibo.runbox.com ([91.220.196.211]:34324) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1greEl-0005iN-Hx for guix-devel@gnu.org; Thu, 07 Feb 2019 02:36:44 -0500 Received: from [10.9.9.129] (helo=rmmprod07.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1greEc-00046v-EL for guix-devel@gnu.org; Thu, 07 Feb 2019 08:36:34 +0100 Received: from mail by rmmprod07.runbox with local (Exim 4.86_2) (envelope-from ) id 1greEc-0007OZ-DK for guix-devel@gnu.org; Thu, 07 Feb 2019 08:36:34 +0100 Content-Disposition: inline Received: from [Authenticated user (850733)] by runbox.com with http (RMM6); for ; Thu, 07 Feb 2019 07:36:34 GMT 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: guix-devel The '--with-commit' flag changes the source used to build a package, the sy= ntax takes the form of '--with-commit=3D=3D'. The '--with-source' flag also changes the source, but uses the syntax '--wi= th-source=3D', but only transforms the top-level package (e.g.= `guix build ` or `guix environment --ad-hoc ``). It also only works if the new source file has the form '-.', which means if a package source UR= L isn't named in that way, then you have to first download it, rename it to= fit that template, then use --with-source with that file. I propose changing the syntax of '--with-source=3D' to match the syntax of = '--with-commit=3D'. This would have the following benefits: - No need to download and rename files that don't fit the '-= .' format. - Able to change the source file of a package input of any package in the = package graph. - Makes the syntax consistent with '--with-commit=3D'. What do other people think?=