-
Notifications
You must be signed in to change notification settings - Fork 711
cabal build and cabal install should emit warnings #4862
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
Comments
Yep, it makes sense to add a warning in 2.2, but there should be an option to turn it off. I suggest something along the following lines:
|
I was thinking more of an encouraging warning: you likely want to use new-* unless you rely on the old behavior.
…Sent from my iPhone
On 3 Nov 2017, at 11:55 PM, Mikhail Glushenkov ***@***.***> wrote:
Yep, it makes sense to add a warning in 2.2, but there should be an option to turn it off. I suggest something along the following lines:
Warning: The behaviour of this command will change in the upcoming 3.0 release.
To read more about the upcoming changes, see <https://URL>. If you want to try
the new behaviour right now, use the new-{build,install,test} set of commands
instead of this one.
To turn this warning off permanently, add 'disable-new-build-warning: True' to your
'~/.cabal/config' file.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I don't know what you generally do for your deprecation process or what you planned for this functionality, but have you considered adding |
That might make the transition easier. |
@tomjaguarpaw tbh, it'd be great (at least that's the thing I can't wait to do) if we could get rid of the old codepaths asap in order to allow us to radically refactor and make the code-base less confusing and easier to develop/maintain (also, old-build codepaths will quickly bitrot once we start defaulting to new-build); which would mean to get rid of the |
@hvr That's fair enough. I'll slightly refine my suggestion then: whilst the old behaviour still exists add |
@23Skidoo please don't forget about this one! |
@typedrat isn't this done? |
I forgot to close it. |
Uh oh!
There was an error while loading. Please reload this page.
If we are intending to transition to
cabal new-...
stuff thencabal build
andcabal install
should probably emit warnings saying that they are no longer the recommended way to do things.[This ticket filed as discussed with
angerman
on Haskell Reddit]The text was updated successfully, but these errors were encountered: