-
Notifications
You must be signed in to change notification settings - Fork 698
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
Implement sandbox add-source --snapshot
#1143
Comments
An alternative (and easier) solution is to add a flag to disable automatic rebuilding of add-source dependencies, e.g. |
We should think about the naming even if we don't add a no-rebuild flag.
I'd like to avoid adding to many new commands. We could add a I'm inclined to hurry slowly here. I don't know yet if this rebuilding will be a problem. Perhaps once we've implemented the final sandbox UI we could try it out for a bit and see. |
There also has to be a mechanism to manually reinstall all add-source snapshots and their reverse dependencies.
I think that this should go into 1.18, perhaps as an undocumented feature. I use this often with |
You would run
I'm fine with that. We should settle on the naming for the add-source/link-source command first and then see if we should add a flag or a new command to support not rebuilding. |
Yes, this makes sense.
I'm okay with either name.
I like your |
Lets go with |
This will have to wait a little bit - I have some exams coming up. |
If I implement #1121, there'll be less need for snapshots. Additionally, there is a way to emulate snapshots using shared sandboxes:
Installing a new snapshot of
|
As documented in #1121, ultimately we want to have minimal rebuilds for add-source dependencies so that they aren't reinstalled on each
cabal build
(even when nothing was changed). However, this won't be included in the next release, so we need some interim solution for the time being.My proposal:
sandbox add-source
tosandbox link-source
to emphasise that changes in the source are tracked.sandbox
subcommands:add-source
andupdate-deps
. The newadd-source
just installs the dependency and remembers its location, but does not track changes in the source. Theupdate-deps
command reinstalls alladd-source
dependencies and their reverse dependencies.add-source
andupdate-deps
once minimal rebuilds are implemented.edit: We agreed on a different UI (see discussion below).
The text was updated successfully, but these errors were encountered: