-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature Request] use foo.opam.locked file by default if present #4190
Comments
It is possible indeed. It would simplify the locked files workflow, but can complecate usual workflow. If a locked file is present in a repository, to share setup with devs, non-devs users will then need to use a |
Hi @rjbou, Thanks for looking into this.
Wouldn't someone who is installing an opam package from a source dir or git repo be considered a dev user? Just so that I understand correctly, opam lock is mostly for a developer user consumption correct? Are you open to a PR implementing this functionality? |
My first impression on this was that this seems like a good idea: basically, users who don't know what they are doing will want the But it's actually a bit more complicated, since there are a few different cases. If we consider the "local switch" case, closer to npm-like workflow, it's entirely sensible. Now, the obvious answer is " In any case, it seems clear that |
opam version: 2.1.0~alpha
When opam locked file is present in a repo, we have to specifically opt in to use it, i.e. use the
--locked
option. It would be a nice user experience improvement if opam used .locked file by defualt and in preference over the corresponding .opam file if present.The text was updated successfully, but these errors were encountered: