GNU bug report logs - #60494
Document git-checkout

Previous Next

Package: guix;

Reported by: mirai <mirai <at> makinata.eu>

Date: Mon, 2 Jan 2023 14:53:01 UTC

Severity: normal

To reply to this bug, email your comments to 60494 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#60494; Package guix. (Mon, 02 Jan 2023 14:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to mirai <mirai <at> makinata.eu>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 02 Jan 2023 14:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: mirai <mirai <at> makinata.eu>
To: bug-guix <bug-guix <at> gnu.org>
Subject: git-reference does not support file:// uri scheme
Date: Mon, 2 Jan 2023 14:52:16 +0000
I'd like to build some specific programs that are git managed but not uploaded anywhere as packages in guix.
The rationale for this is that they're either too specific to be worth publishing or the programs are still
in their very early stages of development.

Using the file:// scheme in a package object does not work and the only workaround is passing the "--with-source=..."
command-line argument to 'guix build' which is rather selective in what it accepts, namely it does not work with bare repositories
meaning that a redundant git clone needs to be done beforehand.




Information forwarded to bug-guix <at> gnu.org:
bug#60494; Package guix. (Mon, 02 Jan 2023 17:25:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: bug-guix <at> gnu.org, mirai <mirai <at> makinata.eu>, 60494 <at> debbugs.gnu.org
Subject: Re: bug#60494: git-reference does not support file:// uri scheme
Date: Mon, 02 Jan 2023 17:24:24 +0000
retitle 60494 Document git-checkout
thanks

Hi!

That itself is not a bug: git-fetch is the wrong tool for this job.  It should not have access to your files.

You can clone a local repository by directly calling git-checkout and passing it as the package source:

  (source
    (git-checkout (url "/home/mirai/foo")))

No need for a hash, either!  \o/





Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




Information forwarded to bug-guix <at> gnu.org:
bug#60494; Package guix. (Mon, 02 Jan 2023 17:25:02 GMT) Full text and rfc822 format available.

Changed bug title to 'Document git-checkout' from 'git-reference does not support file:// uri scheme' Request was from Tobias Geerinckx-Rice <me <at> tobias.gr> to control <at> debbugs.gnu.org. (Mon, 02 Jan 2023 17:27:02 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 164 days ago.

Previous Next


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