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

Improve error/warning reporting in stack sdist and stack upload #2507

Open
sjakobi opened this issue Aug 17, 2016 · 0 comments
Open

Improve error/warning reporting in stack sdist and stack upload #2507

sjakobi opened this issue Aug 17, 2016 · 0 comments

Comments

@sjakobi
Copy link
Member

sjakobi commented Aug 17, 2016

As discovered by @Blaisorblade in #2501 (comment) the check reporting of stack sdist is much less informative than the analogous output from cabal check:

$ cabal check
The following warnings are likely affect your build negatively:
* The 'license-file' field refers to the file 'LICENSE' which does not exist.

Hackage would reject this package.
$ cabal sdist
Distribution quality errors:
The 'license-file' field refers to the file 'LICENSE' which does not exist.
Note: the public hackage server would reject this package.
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for foo-0.1.0.0...
LICENSE: copyFile: does not exist (No such file or directory)
$ stack sdist
Getting file list for /Users/pgiarrusso/AeroFS/Repos/stack-tatooine/foo/
Building sdist tarball for /Users/pgiarrusso/AeroFS/Repos/stack-tatooine/foo/
/Users/pgiarrusso/AeroFS/Repos/stack-tatooine/foo/LICENSE: getFileStatus: does not exist (No such file or directory)

Specifically, stack sdist only says that LICENSE can't be found, not that it's mentioned in license-file (which was genuinely non-obvious in #2500), nor any of the extra info from cabal-install.

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

1 participant