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

.omc should be invalidated when OMAKEPATH value changes #131

Open
ANogin opened this issue Feb 13, 2020 · 1 comment
Open

.omc should be invalidated when OMAKEPATH value changes #131

ANogin opened this issue Feb 13, 2020 · 1 comment

Comments

@ANogin
Copy link

ANogin commented Feb 13, 2020

I installed OCaml 4.07.1 via opam (under docker) and built a project using OMake. Then I installed OCaml 4.09.0 (in a different docker image, so the 4.07.1 was no longer there). I tried running omake on the same source directory again. I got:

*** omake error:
   File OMakeroot: line 9, characters 2-14
   can't open IR: /usr/local/opam/4.07.1/lib/omake/build/C.om
*** omake: polling for filesystem changes (OMakefiles only)

The "offending" line is just open build/C. The problem appears to be that it tries to follow the location cached in .omc during the previous build.

In my use case, at least the issue is fairly obvious, but if I still had the old omake around (and it was an older version with older standard library!), it would probably be silently using the old location rather than the current one.

@jhwoodyatt
Copy link

Workaround for this: omake --flush

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