Skip to content
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

Support being used to supplant opam install, even in a non-opam directory #1

Open
ELLIOTTCABLE opened this issue Jun 4, 2019 · 2 comments

Comments

@ELLIOTTCABLE
Copy link

opam otopop should probably be a full superset of opam install — or at least, should be for simple package-names with no qualifications; and should be when there's no .opam file to modify. This interaction, for example, surprised me:

$ opam otopop menhir
[ERROR] No opam file in /Users/ec/Sync/Code/wrange

[ERROR] opam install ended with a non-zero exit code:
        internal error, uncaught exception:
                     OpamStd.OpamSys.Exit(5)
@rjbou
Copy link
Owner

rjbou commented Jun 5, 2019

This plugin main purpose is to populate the opam file while wrapping the install, simple packages names are handled. Here, it is the error catching that is misleading: the error is raised by the plugin while it displays that the install failed. Before performing the install, the opam file to populate is checked.

If the case where just an install is needed, why don't use directly opam install?

@rjbou
Copy link
Owner

rjbou commented Jun 14, 2019

added better error handling & reporting in 5ec024b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants