Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cabal sdist --snapshot does not work, while ./setup sdist snapshot does #365

Closed
bos opened this issue May 24, 2012 · 3 comments
Closed

cabal sdist --snapshot does not work, while ./setup sdist snapshot does #365

bos opened this issue May 24, 2012 · 3 comments

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #372, reported by @nomeata on 2008-10-16)

Hi,

cabal sdist has a bug, which does not appear when using Setup.lhs

$ cabal clean
cleaning...
$ cabal sdist --snapshot
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for free-theorems-0.2.1.20081016...
cabal: dist/src/free-theorems-0.2.1: getDirectoryContents: does not exist (No such file or directory)
$ runhaskell Setup.lhs sdist --snapshot
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for free-theorems-0.2.1.20081016...
Source tarball created: dist/free-theorems-0.2.1.20081016.tar.gz
$ cat Setup.lhs
# !/usr/bin/env runhaskell

> import Distribution.Simple
> main = defaultMain
Using cabal-install 0.6.0, Cabal 1.6.0.1, ghc 6.8.2. I haven’t looked at the code, but I assume it’s a simple mistake.
@ghost ghost assigned dcoutts May 24, 2012
@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2008-10-16)

See #410.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2009-01-12)

Replying to @dcoutts:

See #410.

Actually that's a mis-diagnosis. It's just a bug.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2009-03-09)

Tue Dec 22 08:05:37 GMT 2009  Duncan Coutts <duncan@haskell.org>
- Fix cabal sdist --snapshot
  
Will be in the next cabal-install 0.8.x release.

@bos bos closed this as completed May 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants