-
Notifications
You must be signed in to change notification settings - Fork 4
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
stackage-sandbox #7
Comments
This is a really nice outline. It's very clear. Comments:
Please make an issue for each of these (just copying over your content from here). Then we can close this issue. The |
Cool. Any comments on my comments? |
Not particularly. I think we're generally on the same page.
I tried at one point to do a copy/paste from cabal.config to cabal.sandbox.config and was disappointed that it didn't work. I agree that if something like this is possible, then this is the way to go.
Your thought process is the same as mine. After I wrote that section, I reflected and realized it was probably unnecessary, but also harmless and potentially still useful.
Agreed. I added a comment to #11 to remember this. |
Cool, we can proceed in the other issues then. |
A tool to assist in using
cabal sandbox
with stackage. Providesinit
,delete
andupgrade
subcommands which should safely replace theirstackage
counterparts. It also provides averify
subcommand to make sure that everything installed in the sandbox matches the constraints incabal.config
.Overall, it should feel like the same workflow, just enhanced with automagical sandbox sharing.
stackage sandbox init [SNAPSHOT]
stackage init [SNAPSHOT]
. (Now cabal.config exists.)ghc --version
cabal sandbox init --sandbox $HOME/.stackage/sandboxes/ghc-x.y.z/SNAPSHOT
stackage sandbox verify
stackage sandbox delete [SNAPSHOT]
This is a different notion than
stackage purge
, so I think it should be named differently.If no snapshot is provided, this simply means "delete my config files."
cabal.sandbox.config
cabal.config
If a snapshot is provided, this simply means "delete that sandbox."
-- maybe this should be a differently-named command.
stackage sandbox upgrade [SNAPSHOT]
stackage sandbox verify [SNAPSHOT]
If no snapshot is provided, this means "verify this project's use of a sandbox"
If snapshot is provided, this means "verify this snapshot" regardless of current directory.
The verify command has potential to do more careful verification, but I think this is a good start.
stackage sandbox fork
A nice-to-have, this would copy the shared sandbox, so that non-snapshot-adhering installs can be made without ruining the shared sandbox. Here's a relevant thread for how to accomplish this:
http://permalink.gmane.org/gmane.comp.lang.haskell.cafe/115691
The text was updated successfully, but these errors were encountered: