Skip to content

Commit c1dcbcb

Browse files
petihvr
authored andcommitted
Removing dist/ in a new-build repo requires removing .ghc.environment.*, too
If `dist/` is deleted but .ghc.environment.* is not, then the repository is in a state that's going to confuse Cabal. Fixes #81.
1 parent 3e1b384 commit c1dcbcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make_travis_yml_2.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ genTravisFromCabalFile (argv,opts) fn xpkgs = do
300300
, "# any command which exits with a non-zero exit code causes the build to fail."
301301
, "script:"
302302
, " - if [ -f configure.ac ]; then autoreconf -i; fi"
303-
, " - rm -rf dist/"
303+
, " - rm -rf .ghc.environment.* dist/"
304304
, " - cabal sdist # test that a source-distribution can be generated"
305305
, " - cd dist/"
306306
, " - SRCTAR=(${PKGNAME}-*.tar.gz)"

0 commit comments

Comments
 (0)