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

Make "missing custom-setup stanza" warnings less noisy #3034

Closed
sjakobi opened this issue Mar 1, 2017 · 5 comments
Closed

Make "missing custom-setup stanza" warnings less noisy #3034

sjakobi opened this issue Mar 1, 2017 · 5 comments

Comments

@sjakobi
Copy link
Member

sjakobi commented Mar 1, 2017

These were introduced in #3019. Here's a snippet from a build log:

comonad-5: configure
Package comonad uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
comonad-5: build
Package comonad uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
comonad-5: copy/register
Package comonad uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
Package comonad uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
bifunctors-5.4.1: configure
bifunctors-5.4.1: build
bifunctors-5.4.1: copy/register
profunctors-5.2: configure
profunctors-5.2: build
semigroupoids-5.1: configure
Package semigroupoids uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
semigroupoids-5.1: build
Package semigroupoids uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
profunctors-5.2: copy/register
semigroupoids-5.1: copy/register
Package semigroupoids uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
Package semigroupoids uses a custom Cabal build, but does not use a custom-setup stanza
Not using the explicit setup deps approach based on configuration
Strongly recommend fixing the package's cabal file
  1. There should only one warning per package.
  2. I think these warnings should only be shown for local packages.
  3. Maybe they could link to relevant documentation for custom-setup?
@mgsloan
Copy link
Contributor

mgsloan commented Mar 8, 2017

Fixed! I agree that it makes sense to only warn for local packages.

This will also improve build performance for packages with custom setup, the multiple messages were from multiple builds of custom setup :o

Maybe they could link to relevant documentation for custom-setup?

Not sure what would be a good thing to link to, so I didn't do this.

@mgsloan mgsloan closed this as completed Mar 8, 2017
@sjakobi
Copy link
Member Author

sjakobi commented Mar 8, 2017

Thanks a lot @mgsloan!

@ekmett
Copy link

ekmett commented Mar 16, 2017

These warnings aren't going away on my end until we can depend universally on a version of cabal that supports custom setup and drop support for old cabal versions. At present much of my code works back to ghc 7.0 or 7.2, which typically ships with a much older cabal.

@mgsloan
Copy link
Contributor

mgsloan commented Mar 16, 2017

@ekmettIn Due to the changes described here, with the next version of stack, at least users of your packages won't get the warnings.

That is a good point, though, you can't make the warning go away and retain backwards compatibility.

@ekmett
Copy link

ekmett commented Mar 16, 2017

Happy to hear!

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

3 participants