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

Resolve #6013: Warn if packages and optional-packages are both empty #6436

Merged
merged 1 commit into from
Dec 15, 2019

Conversation

phadej
Copy link
Collaborator

@phadej phadej commented Dec 15, 2019

Now there's a warning

Warning: There are no packages or optional-packages in the project
cabal: There is no <pkgname>.cabal package file or cabal.project file. To
build packages locally you need at minimum a <pkgname>.cabal file. You can use
'cabal init' to create one.

For non-trivial projects you will also want a cabal.project file in the root
directory of your project. This file lists the packages in your project and
all other build configuration. See the Cabal user guide for full details.

It's subtle, but that's the issue with how we output warnings, not the warning itself.

I'm only making it a warning at this point, as I'm not 100% sure if that setup may still be useful for something. Playing safe for 3.2

@phadej phadej added this to the 3.2.0.0 milestone Dec 15, 2019
@phadej phadej changed the title Resolve #6013: Warn if packages and optional-packages are empty Resolve #6013: Warn if packages and optional-packages are both empty Dec 15, 2019
@phadej phadej merged commit b3c7982 into haskell:master Dec 15, 2019
@phadej phadej deleted the issue-6013 branch December 15, 2019 16:38
@phadej
Copy link
Collaborator Author

phadej commented Dec 15, 2019

Related: #6144

@phadej
Copy link
Collaborator Author

phadej commented Dec 22, 2019

Backported in #6430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant