-
Notifications
You must be signed in to change notification settings - Fork 696
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
sandbox delete-source does not uninstall the source dependency #1447
Comments
I think we should fix this before the release if we can. delete-source should also uninstall the package. |
This is by design. Since we don't have an
Yes, since we don't have We can make |
Since this looks a bit more involved, lets not block 1.18 on this issue. How hard is it to actually remove the package? Couldn't delete-source call the (equivalent of) hc-pkg unregister? Would we also have to make sure we delete the actual library? |
yeah, I was going to ask why can't delete-source run hc-pkg unregister for now. The problem is that if delete-source is not fit for consumption than neither is add-source (for the common workflow of temporarily working on something locally before it gets uploaded to hackage). I love sandboxes because worst case scenario I just wipe them out, re-install, and I haven't effected anything else on my computer. That is another possible suggestion to the user. |
Ideally,
Why? |
I don't feel that saying an issue exists in cabal-dev should be satisfactory for cabal. I personally have not had an installation issue in the last year that I couldn't figure out almost immediately, but that is because I am an advanced user that knows to start with cabal-dev or hsenv and use cabal-meta. Can you answer our question about running hc-pkg automatically? I feel that for a sandbox it is ok to do a crappy job uninstalling packages as long as everything is in the sandbox. The user can just wipe the entire sandbox & reinstall it every once in a while. |
Sure, there is room for improvement. Unfortunately, we can't include all the desired features in the first release (the development period for 1.18 has already been longer than we wanted). It's better to get the release out to the users sooner, even with some deficiencies. Sandboxes are quite useful in the present form.
I'd prefer to just point the user in the direction of |
Lets document the deficiency in the user guide and fix it in the next release. 1.18 is long overdue already. |
@tibbe I made |
I like the new note, that should be enough to avoid user confusion. This release in going to be huge for the community. thanks! |
I think the decision to omit The warning printed by |
Given the direction of cabal, should that suffice to close this ticket? |
OK, sure. |
I am using the release candidate:
cabal install http://johantibell.com/files/Cabal-1.18.0.tar.gz http://johantibell.com/files/cabal-install-1.18.0.tar.gz
I had a few minor issues with delete-source:
Although cabal sandbox list-sources does mention it, which is great.
I was expecting it to also delete the existing sourced version. I could see how the current behaviour could be thought of as desirable. However, it is essentially creating build properties that are invisible to the user so I don't think it is a good default unless perhaps list-sources mentions theses pre-existing sourced versions. It was also unclear to me how I would remove that package, so I just wiped out my sandbox and re-installed everything. Perhaps I was supposed to use hc-pkg, but that option is not explained and it doesn ot respond to --help
The text was updated successfully, but these errors were encountered: