Cabal for GHC 7.8

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? 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. It fails with == running git submodule update Cloning into 'libraries/Cabal'... fatal: remote error: ghc/packages/Cabal is not a valid repository name Email support@github.com for help Clone of 'git@github.com:ghc/packages/Cabal.git' into submodule path 'libraries/Cabal' failed git failed: 256 at ./sync-all line 122. Manuel

We could create a branch for 7.8, but I don't know which commit to branch of. If someone can figure out which cabal 7.8 shipped with we can add the branch. On Sat, Jun 28, 2014 at 7:48 AM, Manuel M T Chakravarty < chak@cse.unsw.edu.au> 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? 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. It fails with
== running git submodule update Cloning into 'libraries/Cabal'... fatal: remote error: ghc/packages/Cabal is not a valid repository name Email support@github.com for help Clone of 'git@github.com:ghc/packages/Cabal.git' into submodule path 'libraries/Cabal' failed git failed: 256 at ./sync-all line 122.
Manuel
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

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#Usin...

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
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#Usin... _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
participants (3)
-
Herbert Valerio Riedel
-
Johan Tibell
-
Manuel M T Chakravarty