Dear Simon,In order for submodules to work, you still have to jump through the main repo. That is,git clone --recursive https://gitlab.haskell.org/ghc/ghc tdammers
cd tdammers
git remote add tdammers git@gitlab.haskell.org:tdammers/ghc.git
git checkout tdammers some-branchDear ghc-devs,More generally, I'm actually wondering, why GHC's .gitsubmodules use relative paths. Why not make them absolute?--Best wishes,ArtemOn Tue, 25 Jun 2019 at 11:52, Simon Peyton Jones via ghc-devs <ghc-devs@haskell.org> wrote:_______________________________________________What is the right procedure for cloning from someone else’s repo.
For example, I wanted to see what was going wrong for Tobias in #16615, so after some detective work I tried
git clone --recursive git@gitlab.haskell.org:tdammers/ghc.git tdammers
but I got lots of errors:
Cloning into '/home/simonpj/code/tdammers/libffi-tarballs'...
setsockopt IPV6_TCLASS 8: Operation not permitted:
> GitLab: The project you were looking for could not be found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@gitlab.haskell.org:tdammers/libffi-tarballs.git' into submodule path '/home/simonpj/code/tdammers/libffi-tarballs' failed
Failed to clone 'libffi-tarballs'. Retry scheduled
Cloning into '/home/simonpj/code/tdammers/libraries/Cabal'...
setsockopt IPV6_TCLASS 8: Operation not permitted:
> GitLab: The project you were looking for could not be found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@gitlab.haskell.org:tdammers/packages/Cabal.git' into submodule path
etc etc.
So:
- What is a reliable way to get a MR onto my machine to test?
- If I make a fix, what is the workflow to push that fix back to the author -- presumably I can’t push to their repo?
Thanks
Simon
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs