-
Notifications
You must be signed in to change notification settings - Fork 711
Remove support for root-cmd, fixes #3353. #3355
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
Conversation
cb8b36a
to
7600f3c
Compare
7600f3c
to
1068042
Compare
As far as I can tell, Appveyor failure is spurious. |
Restarted the build on AppVeyor. Also added everyone belonging to the |
Thanks, confirmed I have access now. (So everyone should be able to restart Travis and AppVeyor builds!) |
I wonder, should we actually leave a message saying the option was removed and what a user should do instead? |
That'd be nice, I think. Maybe we should also print a warning when installing with |
It's not obvious to me that it needs to be removed, but I'm not going to argue that it's important to keep. It's also not implemented in the new-build code path so one fewer thing to do :-) It's perhaps true that |
The factor which pushed me to remove is that Nix-style registration would be a bit of a pain to implement in this regime. Essentially, we need to add a new major mode to cabal-install which knows how to do a Nix style registration (as opposed to just calling Setup install --only as root, as the code does right now.) If we're willing to wade through that complexity we don't need to remove this, but that is the proximal cause for this patch. |
I wonder if this can be fixed by making the Cabal library itself aware of |
@23Skidoo I think if a root cmd exists at all then it belongs in cabal-install not Cabal lib. By rights we ought to call Setup copy --destdir= as the user and then as root only copy over the files and do the ghc-pkg register ourselves. |
@ezyang so this raises a rather interesting issue actually. The current new-build code does (more or less) assume that it can control all the layout etc, so it does not currently support custom layouts of the kind you can do with |
Well, the obvious and conservative choice is to make sure nix-local-build is as backwards compatible as possible, so that when we switch build to use new-build we don't wantonly break existing scripts. |
So before this goes in I want to make sure that we have a plan for what to do about We can probably also deprecate When it comes to Setup scripts, I think that we'll have to support the current interface indefinitely. |
Looking at the option parsing code, it doesn't look like there are any facilities for deprecating flags. I do see |
Yes, flag deprecation is currently done in an ad hoc way. |
OK, new patchset has a warning when you pass |
Great, let's merge then. |
Signed-off-by: Edward Z. Yang <[email protected]>
…cated. Signed-off-by: Edward Z. Yang <[email protected]>
Just the last commit.