From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Better names for Guix versions from git? Date: Wed, 26 Dec 2018 14:57:48 +0100 Message-ID: References: <87lg4dwfmt.fsf@gmail.com> <351d14fe-0edd-6575-939d-981598b65255@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gc9hG-000273-5i for guix-devel@gnu.org; Wed, 26 Dec 2018 08:58:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gc9hE-0003Sx-8h for guix-devel@gnu.org; Wed, 26 Dec 2018 08:58:06 -0500 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:42098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gc9hB-0003R4-Um for guix-devel@gnu.org; Wed, 26 Dec 2018 08:58:02 -0500 Received: by mail-io1-xd29.google.com with SMTP id x6so12332731ioa.9 for ; Wed, 26 Dec 2018 05:58:00 -0800 (PST) In-Reply-To: <351d14fe-0edd-6575-939d-981598b65255@riseup.net> 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: swedebugia Cc: Guix-devel Hello, swedebugia ezt =C3=ADrta (id=C5=91pont: 2018. dec. = 25., K, 22:39): > > On 2018-12-25 20:49, Taylan Kammer wrote: > > Currently, after running 'guix pull', the Guix version will be reported > > by 'guix --version' as something like: > > > > 522d1b87bc88dd459ade51b1ee0545937da8d3b5 > > > > I think it would be really nice if instead it were something like: > > > > 2018-12-25-522d1b > > > > where the date is the commit's date (year, month, day) in UTC+0. > > > > That's shorter, more descriptive, and just as unique. (The chances of > > there being two commits in the same day with the same first 6 positions > > in the hash should be negligient.) > > > > The package name is currently something like: > > > > guix-522d1b87b > > > > That could become: > > > > guix-2018-12-25-522d1b > > > > which is a bit longer but more descriptive. > > > > I looked into guix/self.scm a bit but couldn't easily tell how difficul= t > > it would be to implement these changes. > > > > Thoughts? Worth it? > > I think it is worth it, in fact I was on my way to suggest the same. > > -- > Cheers Swedebugia > What do you think about a git describe like output? This gives on current master: v0.16.0-362-g10275b746 this means the current branch is based on annotated tag v0.16.0, 362 commits are added on top, and the sort commit id is 10275b746. Best regards, g_bor