Can't initialise vendored submodule
Vaibhav Sagar
vaibhavsagar at gmail.com
Fri Aug 2 10:07:56 UTC 2024
I think you want --recursive
On Fri, 2 Aug 2024, 8:05 pm Arnaud Spiwack, <arnaud.spiwack at tweag.io> wrote:
> Dear all,
>
> I'm currently unable to build GHC's master branch as some of the
> submodules (presumably used by Hadrian) are making git pretty unhappy (I've
> used various variants of the command below, in a cleaned repository):
>
> ```console
> $ git submodule update --init
> error: submodule git dir
> '/home/aspiwack/projects/tweag/ghc/master/.git/modules/hadrian/vendored/Cabal'
> is inside git dir
> '/home/aspiwack/projects/tweag/ghc/master/.git/modules/hadrian'
> fatal: refusing to create/use
> '/home/aspiwack/projects/tweag/ghc/master/.git/modules/hadrian/vendored/Cabal'
> in another submodule's git dir
> Failed to clone 'hadrian/vendored/Cabal'. Retry scheduled
> error: submodule git dir
> '/home/aspiwack/projects/tweag/ghc/master/.git/modules/hadrian/vendored/Cabal'
> is inside git dir
> '/home/aspiwack/projects/tweag/ghc/master/.git/modules/hadrian'
> fatal: refusing to create/use
> '/home/aspiwack/projects/tweag/ghc/master/.git/modules/hadrian/vendored/Cabal'
> in another submodule's git dir
> Failed to clone 'hadrian/vendored/Cabal' a second time, aborting
> ```
>
> Please advise on how to get unblocked.
>
> And, if I'm allowed to conclude with a plea: please be careful not to
> abuse Git's submodule system, it's wonky enough when used simply.
>
> --
> Arnaud Spiwack
> Director, Research at https://moduscreate.com and https://tweag.io.
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20240802/fd3ca2c4/attachment.html>
More information about the ghc-devs
mailing list