Closed DanBurton closed 8 years ago
How do I test locally that the tarball is correctly built without uploading to Hackage?
You can stack sdist
(or cabal sdist
) the project, then unpack that tarball and run tests on it. For example, here's what I did:
stack sdist
cd .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/
tar -xzf morte-1.5.1.tar.gz
cd morte-1.5.1
stack init --resolver lts-5.9
stack test
Alright, morte-1.5.1
is up on Hackage with the fix and I was able to verify that it runs tests correctly from the sdist
tarball.
To reproduce:
stack unpack morte-1.5.0 && cd morte-1.5.0
stack init --resolver lts-5.8
stack test