unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60494: git-reference does not support file:// uri scheme
@ 2023-01-02 14:52 mirai
  2023-01-02 17:24 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 1 reply; 2+ messages in thread
From: mirai @ 2023-01-02 14:52 UTC (permalink / raw)
  To: 60494

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#60494: git-reference does not support file:// uri scheme
  2023-01-02 14:52 bug#60494: git-reference does not support file:// uri scheme mirai
@ 2023-01-02 17:24 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2023-01-02 17:24 UTC (permalink / raw)
  To: 60494, mirai

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-02 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-02 14:52 bug#60494: git-reference does not support file:// uri scheme mirai
2023-01-02 17:24 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).