GNU bug report logs - #36371
'--with-commit' does not support tags

Previous Next

Package: guix;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Tue, 25 Jun 2019 09:25:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 36371 <at> debbugs.gnu.org
Subject: bug#36371: guix build --with-git-reference=…
Date: Tue, 25 Jun 2019 11:24:33 +0200
[Message part 1 (text/plain, inline)]
Guix,

bricewge on #guix informed me that there's no way to pass a git 
tag as source transformation option.  Indeed:

 ‘--with-commit=PACKAGE=COMMIT’
    This is similar to ‘--with-branch’, except that it builds 
    from
    COMMIT rather than the tip of a branch.  COMMIT must be a 
    valid Git
    commit SHA1 identifier.

is quite different from (guix git-download)'s pleasantly liberal 
notion of commit:

 (git reference
   (url "git://foo.org/fizbo")
   (commit "fizbo-4.5"))      ; tag yay

bricewge suggested that a single ‘--with-git-ref[erence]=’ could 
replace both ‘--with-branch’ and a new ‘--with-tag’, and I agree. 
(Although I prefer the full spelling, of course :-)

Two questions:
- Is this really not supported yet, or am I missing the obvious?
- Why is the (extremely) git-specific ‘--with-commit=’ option not 
 called ‘--with-git-commit=’?  Was it intended to be more generic 
 than it is now?  Should the new option be ‘--with-reference=’ as 
 well?  That's pushing it a little far.  And three questions in 
 one; I'm cheating.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 5 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.