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

[wish] opam install/pin from opam file #4227

Open
ygrek opened this issue Jun 9, 2020 · 2 comments
Open

[wish] opam install/pin from opam file #4227

ygrek opened this issue Jun 9, 2020 · 2 comments

Comments

@ygrek
Copy link
Contributor

ygrek commented Jun 9, 2020

Currently opam pin allows to install package from location where source is present and opam file is either in the source or in opam repository. It would be nice to be able to install a package just by pointing at opam file location only (i.e. opam file that is separate from the source but that contains an url field which points to the source).

One usecase - testing opam package before submitting PR to opam-repository - currently one has to commit this package to local repository, update that repository, then only do install, rinse and repeat for any error - it is doable but it takes time. It would be nice to just do opam install path_to_opam_file.

@rjbou
Copy link
Collaborator

rjbou commented Jun 16, 2020

We could add an option for that specific behavior, somethnig like --from-file, that pins the packages with the url in the opam file.
In the meantime, you can speed up your testing process by using pin editing opam pin --edit <pkg> <opam-file-url> and when editing, you paste the repo opam file to test (you can even tweak the OPAMEDITOR env variable to drop the copy paste step, by using a cat command for ex.).

@ygrek
Copy link
Contributor Author

ygrek commented Jun 24, 2020

thanks for the tip

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

No branches or pull requests

2 participants