cabalg

alias for cabal install from given git repo

Latest on Hackage:0.2.9

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Dmitry Malikov
Maintained by malikov.d.y@gmail.com

cabalg is an alias for installing cabal package from a git source repository.

E.g.

$ git clone https://github.com/author/foo
$ git clone https://github.com/author/bar
$ cabal install foo/foo.cabal bar/bar.cabal baz.cabal

could be abbreviated by

$ cabalg https://github.com/author/foo https://github.com/author/bar -- biegunka.cabal

It also supports arbitrary git revisions mentioning like

 $ cabalg https://github.com/baz/quux@f524f97

Necessary arguments could be passed to 'cabal install' with -- delimiter like

$ cabalg <repo1> ... <repoN> [-- <cabal-install args>]

Please notice, that --single-branch flag comes with git-1.7.10 (https://lkml.org/lkml/2012/3/28/418) and later, so you probably want to have it.

It's supposed to be Windows-compatible (not sure about the tests)

Changes

0.2.9

  • Exit with failure if cabal thrown non-success exit code

0.2.8

  • Respect $TMPDIR and $TEMP environment variables

0.2.7

  • Add --help and --version command line options

  • Bug fixed: download the default upstream branch unless another one is explicitly provided https://github.com/dmalikov/cabalg/issues/5

0.2.6

  • Display progress incrementally during install by allowing standard handles to inherit (@cpennington)

0.2.5

  • Print cabal logs to the output

0.2.4

  • Bug fixed: internal git checkout producing redundant copy of git repository https://github.com/dmalikov/cabalg/issues/3

0.2.3

  • All non-base dependencies are dropped
  • 7.2, 7.4, 7.6, 7.8 are supported

0.2.2

  • Select *.cabal files found only with depth 1

0.2.1

  • Get rid of temporary dependency

0.2.0

  • Remove cabal sandbox support

  • Handle multiple number of git repository at once

  • Cloning repo in a current directory

  • Cmd line arguments are interpreting like <repo1> ... <repoN> [-- <cabal-install flags>]

  • Remove --branch <branch_name> flag

  • Add syntax to mentioning revisions like https://<repourl>@<revision>

0.1.2

Initial version introduced:

  • Cloning repo into a temporary directory according to System.FilePath.getTemporaryDirectory

  • Cabal sandbox support

Used by 1 package:
comments powered byDisqus