From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Version numbers for VCS snapshots Date: Thu, 21 Jan 2016 10:40:41 +0100 Message-ID: References: <874mem8mwx.fsf@gnu.org> <8737u344ov.fsf@elephly.net> <87twmjp2qs.fsf_-_@gnu.org> <56A063D1.80608@uq.edu.au> <20160121062251.GA25513@jasmine> 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]:58136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMBjb-00021n-Li for guix-devel@gnu.org; Thu, 21 Jan 2016 04:40:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMBjY-0005Xx-Fq for guix-devel@gnu.org; Thu, 21 Jan 2016 04:40:55 -0500 Received: from sinope.bbbm.mdc-berlin.de ([141.80.25.23]:45193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMBjY-0005Xt-6T for guix-devel@gnu.org; Thu, 21 Jan 2016 04:40:52 -0500 In-Reply-To: <20160121062251.GA25513@jasmine> 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: Leo Famulari Cc: guix-devel@gnu.org Leo Famulari writes: > That sounds good to me. There was some discussion of how much of the > hash to keep here: > http://lists.gnu.org/archive/html/guix-devel/2015-12/msg00136.html > > I like this method that I've seen in some of the packages, because it > keeps the version tidy while preserving the full hash: > > --8<---------------cut here---------------start------------->8--- > (define-public hello > (let ((commit "e8e46123cfe62170a2f7f79db6b471b66ae36947")) > (package > (name "hello") > (version (string-append "2.10-1" (string-take commit 8))) > (source (origin > (method git-fetch) > (uri (git-reference > (url "git://git.sv.gnu.org/hello.git") > (commit commit))) > (sha256 > [...] > --8<---------------cut here---------------end--------------->8--- I like this approach (though I=E2=80=99ve been taking 9 characters of the= commit ;)). ~~ Ricardo