-
Notifications
You must be signed in to change notification settings - Fork 358
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
Make opam switch export --freeze
more permissive
#4985
Comments
xref #4897 |
FWIW, it would be great to not modify the semantics of |
Yes, the change here would be to add an additional option to control this, not alter |
@hannesm My purpose is actually also reproducible builds. However, I should note that the current semantics of At the end of the day, there is probably nothing that can be done about this, but it may be useful to output a warning whenever the export contains links to the local filesystem. In the same way, maybe it would be interesting to just allow source-links to raw filesystem locations (of course with warnings all over the place) |
@LasseBlaauwbroek Thanks for your comment. I guess we're mostly on the same page here:
Now, the disagreement seems to be in the "handle":
And indeed, the question is about the default semantics -- as @dra27 suggested there should be a new command-line parameter to change the "handle" above - warn or fail. NB: of course this still can lead to something not reproducible, since we rely on URLs (and thus DNS) which in certain network setups (e.g. your private company network) may result in different accessible repositories and repositories. But I don't think it is worth to deal with that. |
I agree with your analysis. My personal reasoning is that I prefer a mostly reproducible build over a not-at-all reproducible build (because opam gave an error). But I can imagine that other situations ask for an error. So I would propose that we do this:
|
When I run
opam switch export --freeze
while having a package pinned to the local filesystem, I get this error:I get that this is not possible, but the fact that this prevents the entire export is unfortunate. I would much prefer that Opam just skips the freeze operation of this particular package. Or otherwise, maybe there can be a
--permissive
option.The text was updated successfully, but these errors were encountered: