submodules

Simon Peyton Jones simonpj at microsoft.com
Tue Apr 11 16:29:15 UTC 2017


Thanks Reid, Matthew.

S

|  -----Original Message-----
|  From: Reid Barton [mailto:rwbarton at gmail.com]
|  Sent: 11 April 2017 17:01
|  To: Simon Peyton Jones <simonpj at microsoft.com>
|  Cc: ghc-devs <ghc-devs at haskell.org>
|  Subject: Re: submodules
|  
|  Hi Simon,
|  
|  This happens because the locations of the submodules are specified
|  using relative paths from the main GHC repository, but Tritlo has only
|  made a fork of the main GHC repo, not all the submodules. I would do
|  this:
|  
|  * Clone from the main GHC repo (including submodules) however you
|  usually do it (e.g., git clone --recursive
|  https://git.haskell.org/ghc.git)
|  * Add Tritlo's ghc repo as a remote: git remote add tritlo
|  git at github.com:Tritlo/ghc.git
|  * Fetch from the new remote: git fetch tritlo
|  * Check out the branch you want: git checkout tritlo/<branch-name>
|  
|  Here "tritlo" is just a name for the remote within your local ghc
|  checkout, so it can be anything you choose.
|  
|  Regards,
|  Reid Barton
|  
|  On Tue, Apr 11, 2017 at 11:53 AM, Simon Peyton Jones via ghc-devs
|  <ghc-devs at haskell.org> wrote:
|  > Devs
|  >
|  > I want to build a GHC from someone else repo; this one actually
|  > git at github.com:Tritlo/ghc.git.
|  >
|  > But when I clone it, and then do git submodule init; git submodule
|  > update, I get lots of
|  >
|  > git submodule update
|  >
|  > Cloning into '.arc-linters/arcanist-external-json-linter'...
|  >
|  > ERROR: Repository not found.
|  >
|  > fatal: Could not read from remote repository.
|  >
|  >
|  >
|  > Please make sure you have the correct access rights
|  >
|  > and the repository exists.
|  >
|  > Clone of 'git at github.com:Tritlo/arcanist-external-json-linter.git'
|  > into submodule path '.arc-linters/arcanist-external-json-linter'
|  > failed
|  >
|  > simonpj at cam-05-unx:~/code/ghc-holes$
|  >
|  > What is the kosher way to do this?
|  >
|  > Thanks
|  >
|  > Simon
|  >
|  >
|  > _______________________________________________
|  > ghc-devs mailing list
|  > ghc-devs at haskell.org
|  >
|  https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.h
|  > askell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-
|  devs&data=02%7C01%7Csimonpj%40microsoft.com%7C630b51f1147e4a4094ea08d4
|  80f40167%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C6362752328637058
|  80&sdata=tw7pl0q6yMwSGGA2ggq5ZOI7H%2B%2FGVW2AozV7eObsyMU%3D&reserved=0
|  >


More information about the ghc-devs mailing list