unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* git clone with submodules
@ 2021-12-02  7:12 Adam Kandur via Development of GNU Guix and the GNU System distribution.
  2021-12-02 12:14 ` David Larsson
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Kandur via Development of GNU Guix and the GNU System distribution. @ 2021-12-02  7:12 UTC (permalink / raw)
  To: Guix Devel

Hi guix!
Is there way to clone a project when i'm building a package with all git submodules?


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

* Re: git clone with submodules
  2021-12-02  7:12 git clone with submodules Adam Kandur via Development of GNU Guix and the GNU System distribution.
@ 2021-12-02 12:14 ` David Larsson
  2021-12-02 12:28   ` Tobias Geerinckx-Rice
  2021-12-02 17:40   ` Adam Kandur via Development of GNU Guix and the GNU System distribution.
  0 siblings, 2 replies; 4+ messages in thread
From: David Larsson @ 2021-12-02 12:14 UTC (permalink / raw)
  To: Adam Kandur; +Cc: Guix Devel

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

Hi Kandur!
Yes there is. Example:

...
(git-reference (url ...) (commit ...) (recursive? #t))
...

Best regards
David

On Thu, Dec 2 2021 at 08:12:35 +0100, Adam Kandur via Development of 
GNU Guix and the GNU System distribution. <guix-devel@gnu.org> wrote:
> Hi guix!
> Is there way to clone a project when i'm building a package with all 
> git submodules?


[-- Attachment #2: Type: text/html, Size: 646 bytes --]

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

* Re: git clone with submodules
  2021-12-02 12:14 ` David Larsson
@ 2021-12-02 12:28   ` Tobias Geerinckx-Rice
  2021-12-02 17:40   ` Adam Kandur via Development of GNU Guix and the GNU System distribution.
  1 sibling, 0 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice @ 2021-12-02 12:28 UTC (permalink / raw)
  To: David Larsson; +Cc: Adam Kandur, guix-devel

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

David Larsson 写道:
> (git-reference (url ...) (commit ...) (recursive? #t))

Also: don't forget to change the hash when changing fields like 
RECURSIVE? which have no effect on the store file name, or Guix 
will happily return the non-recursive checkout.

This is because hash + name, not the URL or fetch options, 
uniquely identify the source.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

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

* Re: git clone with submodules
  2021-12-02 12:14 ` David Larsson
  2021-12-02 12:28   ` Tobias Geerinckx-Rice
@ 2021-12-02 17:40   ` Adam Kandur via Development of GNU Guix and the GNU System distribution.
  1 sibling, 0 replies; 4+ messages in thread
From: Adam Kandur via Development of GNU Guix and the GNU System distribution. @ 2021-12-02 17:40 UTC (permalink / raw)
  To: David Larsson; +Cc: Guix Devel

Thank you!



Dec 2, 2021, 15:14 by mail@selfhosted.xyz:

> Hi Kandur!
> Yes there is. Example: 
>
> ...
> (git-reference (url ...) (commit ...) (recursive? #t))
> ...
>
> Best regards
> David
>
> On Thu, Dec 2 2021 at 08:12:35 +0100, Adam Kandur via Development of GNU Guix and the GNU System distribution. <guix-devel@gnu.org> wrote:
>
>> Hi guix!Is there way to clone a project when i'm building a package with all git submodules?
>>


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

end of thread, other threads:[~2021-12-03 21:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02  7:12 git clone with submodules Adam Kandur via Development of GNU Guix and the GNU System distribution.
2021-12-02 12:14 ` David Larsson
2021-12-02 12:28   ` Tobias Geerinckx-Rice
2021-12-02 17:40   ` Adam Kandur via Development of GNU Guix and the GNU System distribution.

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).