-
Notifications
You must be signed in to change notification settings - Fork 368
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
--working-dir does not work as expected #4067
Comments
Thanks for the report!
You shouldn't have different behavior according the os... working dir uses rsync & git, that are not different on those os.
You can add them on the root or file folder, opam should take them both. In this issue (and especially the gist) you can find information about this kind of actions. From you log, it seems that there is a mismatching checksum between the found file and the checksum in the opam file. Can you run using on verbose mode Note that working dir had some fixes/updates in opam' master. |
The checksum mismatch is because the opam files have been replaced with the version from git, which have a different checksum. The extra files themselves don't exist in git (don't ask ...), so they are not updated. I attached the verbose log. Thanks for the links on more detailed information. |
Can you check that the problem is resolved in master (or in next 2.1.0~beta)? there was several fixes on working-dir merged. |
Any news @MSoegtropIMC ? |
I hesitaed to update opam. One question: if I update opam, do I need to recompile everything or will it take my switches as it finds them? |
Today's master will not update your switches, but tomorrow one could :D. In any case, it is supposed to be completely transparent, without switch rebuild, and break free. |
Indeed, I can just backup .opam. I will try it tomorrow. |
Any news on this one ? |
Sorry I didn't do any local repo opam stuff the last weeks, but I need to create a few packages this week, which will require testing this. So I will find out soon. |
This should hopefully have been addressed during the 2.1.0 development cycle - please re-open if not! |
Dear Opam Team,
I am trying to build unreleased versions of Coq in a local git repo using opam to ensure it is build in the same way as opam would build it. Unfortunately Coq has some outdated .opam files in its source tree (which of cause can be fixed). So what I do is delete the local opam files and copy proper opam files from the latest release into the local git repo. Since I don't commit these changes I need --working-dir. I also copy the additional files (coq.install and coqide.install).
So what I do is:
Now the interesting thing is that this does work on OSX but it does not work on Ubuntu 18.04. On both I have opam 2.0.5 and OCaml 4.08.1. On Ubuntu when I look into opam's source cache I see the version committed to GIT and not the working dir version. Also on OSX opam seems to be happy when I copy the additonal files into the root folder while on Linux it seems to want them in root/files. I wonder what I am doing wrong.
The output I get on Linux is:
Best regards,
Michael
The text was updated successfully, but these errors were encountered: