[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Version numbers for VCS snapshots
From: |
Ludovic Courtès |
Subject: |
Re: Version numbers for VCS snapshots |
Date: |
Thu, 21 Jan 2016 22:05:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Leo Famulari <address@hidden> skribis:
> On Thu, Jan 21, 2016 at 10:40:41AM +0100, Ricardo Wurmus wrote:
>>
>> Leo Famulari <address@hidden> 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’ve been taking 9 characters of the commit
>> ;)).
>
> I like 10 but I wanted to match your example upthread ;)
I prefer 7! This is how Git usually truncates SHA1s, so it can’t be wrong.
Ludo’.
- Re: New CLI syntax for package version, (continued)
- Re: Version numbers for VCS snapshots, Ricardo Wurmus, 2016/01/21
- Re: Version numbers for VCS snapshots, Ludovic Courtès, 2016/01/21
- Re: Version numbers for VCS snapshots, Ricardo Wurmus, 2016/01/21
- Re: Version numbers for VCS snapshots, Ludovic Courtès, 2016/01/23
- Re: Version numbers for VCS snapshots, Ricardo Wurmus, 2016/01/23
- Re: Version numbers for VCS snapshots, Ludovic Courtès, 2016/01/24
- Re: Version numbers for VCS snapshots, Eric Bavier, 2016/01/21
- Re: Version numbers for VCS snapshots, Jookia, 2016/01/21
- Re: Version numbers for VCS snapshots, Andy Wingo, 2016/01/22
- Re: Version numbers for VCS snapshots, Ricardo Wurmus, 2016/01/22