-
Notifications
You must be signed in to change notification settings - Fork 351
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
generate self-contained bundles with dependencies #1190
Conversation
OpamGlobals.error_and_exit "bundle directory exists"; | ||
if not dryrun then | ||
List.iter mkdir [bundle; archives]; | ||
let t = OpamState.load_state "bundle" in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit afraid of how this can be used in the following commands, as we don't want the currently installed packages, etc. to interfere in any way with the bundle itself.
This seems really useful. Unfortunately, it is not in the beta for opam 1.2. Is there any chance it could still be squeezed in? |
command `opam bundle PKG` will create subdirectory `bundle` with archives of PKG and all it's transitive dependencies and `install.sh` script when run will install everything into `local` subdirectory. TODO * optionally include/install compiler * excludes (e.g. ocamlfind)? * optional dependencies?
constrained by current state
Patches updated for the latest git. The current plan is to make a separate tool based on opam-lib, so I might submit a separate patch to expose |
That sounds a great idea! Feel free to expose the functions you need in opam-lib to make that work. |
see #1752 |
command
opam bundle PKG
will create subdirectorybundle
with archives of PKG and all it's transitive dependenciesand
install.sh
script when run will install everything intolocal
subdirectory.TODO