-
Notifications
You must be signed in to change notification settings - Fork 697
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
cabal upgrade
leads to odd diagnostic
#6691
Comments
There is in fact "Use the 'cabal install' command instead of 'cabal upgrade'.\n"
++ "You can install the latest version of a package using 'cabal install'. "
++ "The 'cabal upgrade' command has been removed because people found it "
++ "confusing and it often led to broken packages.\n"
++ "If you want the old upgrade behaviour then use the install command "
++ "with the --upgrade-dependencies flag (but check first with --dry-run "
++ "to see what would happen). This will try to pick the latest versions "
++ "of all dependencies, rather than the usual behaviour of trying to pick "
++ "installed versions of all dependencies. If you do use "
++ "--upgrade-dependencies, it is recommended that you do not upgrade core "
++ "packages (e.g. by using appropriate --constraint= flags)."
where if it wasn't buggy. |
The question is, should we fix |
@phadej |
I take that as we can just remove There is also And also (Other |
I can't say I've ever heard of |
@Mistuke thanks for that insight. I'll make a PR removing |
…mmands Resolve #6691: Remove upgrade, uninstall and win32selfupgrade commands
Great work.. Thanks. |
Describe the bug
I inadvertently tyoed
cabal upgrade
instead ofcabal update
and got a strange diagnosticTo Reproduce
Steps to reproduce the behavior:
Expected behavior
So far as I aware,
upgrade
is not a validcabal
command so I should get anunrecognised command
diagnostic.System information
cabal
,ghc
versions: cabal 3.2.0.0, ghc 8.8.3Additional context
This is obviously not a deal breaker, but it may point to a deeper bug in
cabal
command line parsing.The text was updated successfully, but these errors were encountered: