Cabal for GHC 7.8
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Sat Jun 28 10:34:59 UTC 2014
Thanks, Herbert.
I eventually noticed that it the Cabal repo is a submodule, but I wasn’t aware of the Git’s support to rewrite URLs.
To answer your questions: cloning from GitHub is useful as I can fork the repos on GitHub. At haskell.org, I need to use branches, which I don’t like.
Manuel
Herbert Valerio Riedel <hvriedel at gmail.com>:
> On 2014-06-28 at 07:48:16 +0200, Manuel M T Chakravarty wrote:
>> I noticed that the Cabal package doesn’t have a branch for ghc-7.8:
>>
>> http://git.haskell.org/packages/Cabal.git
>>
>> Is that intended?
>
> A ghc-7.8 branch is not really needed, as Cabal is registered as
> submodule in ghc.git's ghc-7.8 branch. It's just sync-all that
>
>> Maybe as a result the instructions at
>>
>> https://ghc.haskell.org/trac/ghc/wiki/Building/GettingTheSources
>>
>> to check out a branch from the *GitHub mirror repos* doesn’t work
>> either.
>
> For cloning via the GitHub-mirror[1] I'd recommend using the scheme as
> described in [2]. That is, set up url-rewrites (that take also into
> account the 'packages/foo' -> 'packages-foo' rewriting):
>
> git config --global url."git://github.com/ghc/".insteadOf git://git.haskell.org/
> git config --global url."git://github.com/ghc/packages-".insteadOf git://git.haskell.org/packages/
>
> and then clone as if you would from git://git.haskell.org
>
> git clone -b ghc-7.8 git://git.haskell.org/ghc.git ghc-7.8
> cd ghc-7.8
> ./sync-all get -b ghc-7.8
>
> all network access will be redirected to github.com instead.
>
>
> [1]: Btw, why do you want to use the github mirror instead of git://git.haskell.org?
>
> [2]: https://ghc.haskell.org/trac/ghc/wiki/WorkingConventions/Git/Submodules#UsingtheGitHubGHCMirror
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
More information about the ghc-devs
mailing list