From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: New CLI syntax for package version Date: Tue, 12 Jan 2016 08:50:24 +0100 Message-ID: <8737u344ov.fsf@elephly.net> References: <874mem8mwx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aItiu-0005an-KP for guix-devel@gnu.org; Tue, 12 Jan 2016 02:50:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aItit-0005q8-M9 for guix-devel@gnu.org; Tue, 12 Jan 2016 02:50:36 -0500 In-reply-to: <874mem8mwx.fsf@gnu.org> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Courtès writes: > In , we came to the conclusion that we need a > new syntax to denote a specific package version on the command line. > > The current syntax is described in the manual (info "(guix) Invoking > guix package"). Basically, ‘guile-1.8’ refers to version 1.8.x of > Guile; however, this syntax has proved to be ambiguous for packages > whose name contains digits. Should we also take some time to reconsider how we name unreleased versions like arbitrary git commits? So far we have been picking the latest release version (or “0.0.0” if there hasn’t been any release) followed by “.” and either a date or a guix-internal revision number, then again a “.” followed by part of the commit hash. I’m afraid that we might accidentally introduce conflicts with future release versions, e.g. when the latest release only uses two digits (e.g. “0.1”) and we add a revision or a date (e.g. “0.1.1” or “0.1.20160112”) and the next release and the next official release switches to three digits (e.g. “0.1.1”). Would it make sense to separate our version identifier from the actual release version with a different character than “.”? Or should this be discussed elsewhere as it hasn’t anything to do with how we specify versions on the command line? ~~ Ricardo