mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-10 13:27:29 +01:00
Add instructions for testing a package against the latest versions of dependencies
This commit is contained in:
parent
404cd4b55b
commit
097b64503d
@ -21,6 +21,18 @@ To add a set of packages, you would add:
|
|||||||
|
|
||||||
After doing that, send a pull request (with a commit message like "add foo-bar"). We do not require new submissions to be tested against the rest of Stackage before the pull request (though it is a good idea to do so if you can with `stack --resolver nightly exec stackage-curator check` and `stack --resolver nightly build`), provided you meet the dependency version requirements above. If your library depends on a C library, add a note to your pull request with the Ubuntu library name, or even better edit the `debian-bootstrap.sh` script directly
|
After doing that, send a pull request (with a commit message like "add foo-bar"). We do not require new submissions to be tested against the rest of Stackage before the pull request (though it is a good idea to do so if you can with `stack --resolver nightly exec stackage-curator check` and `stack --resolver nightly build`), provided you meet the dependency version requirements above. If your library depends on a C library, add a note to your pull request with the Ubuntu library name, or even better edit the `debian-bootstrap.sh` script directly
|
||||||
|
|
||||||
|
If you want to make sure that the package builds against the newest versions of all dependecies you can do this:
|
||||||
|
```
|
||||||
|
$ cabal update
|
||||||
|
$ ghc --version # Should give v8.0.1
|
||||||
|
$ cabal get PACKAGE-VERSION # e.g. aeson-0.11.2.1
|
||||||
|
$ cd PACKAGE-VERSION
|
||||||
|
$ cabal sandbox init # Should give "Creating a new sandbox" and not "Using an existing sandbox".
|
||||||
|
$ cabal install --enable-tests --enable-benchmarks --dry-run | grep latest # Should give no results
|
||||||
|
$ cabal install --enable-tests --enable-benchmarks --allow-newer
|
||||||
|
$ cabal test
|
||||||
|
```
|
||||||
|
|
||||||
**NB** Please use commit messages like "add foo-bar" or "add johndev's packages"
|
**NB** Please use commit messages like "add foo-bar" or "add johndev's packages"
|
||||||
(`build-constraints.yaml` is the most frequently changed file in this git repo
|
(`build-constraints.yaml` is the most frequently changed file in this git repo
|
||||||
so commit messages like "update build-constraints.yaml" are not helpful).
|
so commit messages like "update build-constraints.yaml" are not helpful).
|
||||||
@ -28,8 +40,8 @@ so commit messages like "update build-constraints.yaml" are not helpful).
|
|||||||
**NB2** There can be a delay of up to an hour before package versions
|
**NB2** There can be a delay of up to an hour before package versions
|
||||||
newly uploaded to Hackage appear to our build server. If you just
|
newly uploaded to Hackage appear to our build server. If you just
|
||||||
uploaded a package to Hackage that you're trying to get included, we
|
uploaded a package to Hackage that you're trying to get included, we
|
||||||
recommend waiting an hour before opening the PR. You can also verify
|
recommend waiting an hour before opening the PR. You can verify this
|
||||||
this by making sure the latest version is listed in
|
by making sure the latest version is listed in
|
||||||
https://github.com/commercialhaskell/all-cabal-files/tree/master/PACKAGENAME.
|
https://github.com/commercialhaskell/all-cabal-files/tree/master/PACKAGENAME.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ We welcome all packages, provided:
|
|||||||
* The package is compatible with the newest versions of all dependencies (You can find restrictive upper bounds by visiting http://packdeps.haskellers.com/feed?needle=PACKAGENAME).
|
* The package is compatible with the newest versions of all dependencies (You can find restrictive upper bounds by visiting http://packdeps.haskellers.com/feed?needle=PACKAGENAME).
|
||||||
* The package is compatible with the versions of libraries that ship with GHC ([more information on lenient lower bounds](https://www.fpcomplete.com/blog/2014/05/lenient-lower-bounds)).
|
* The package is compatible with the versions of libraries that ship with GHC ([more information on lenient lower bounds](https://www.fpcomplete.com/blog/2014/05/lenient-lower-bounds)).
|
||||||
|
|
||||||
Full details on how to add a package can be found in the [maintainers agreement](https://github.com/fpco/stackage/blob/master/MAINTAINERS.md#adding-a-package).
|
Full details on how to add and test a package can be found in the [maintainers agreement](https://github.com/fpco/stackage/blob/master/MAINTAINERS.md#adding-a-package).
|
||||||
|
|
||||||
__NOTE__: There is an approximate 30 minute delay between a package uploading
|
__NOTE__: There is an approximate 30 minute delay between a package uploading
|
||||||
to Hackage and being available to the Travis build script to check upper
|
to Hackage and being available to the Travis build script to check upper
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user