Remove --upgrade-cabal recommendation #3019
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As we started discussing on Slack, and related to #2795. The original issue is no longer present in Stack due to the usage of custom setup deps now being fully supported. If I manually remove the custom-setup stanza from the glib cabal file, the problem reappears. In theory, the right solution is to notice that there's a Cabal library present in the snapshot database and use that instead. I don't want to do that though, because:
ghc-pkg
call, which isn't cheap.stack build Cabal
or not.I've instead added a warning in the case of a missing
custom-setup
stanza. I believe this is the right approach: all of these build issues will disappear (in theory) with properly provided custom-setup, so we should be encouraging them.I'd go so far as to say that, in the not-too-distant future, removing the ability to upgrade the global Cabal library entirely may be the right approach.
Pinging @lwm @borsboom