-
Notifications
You must be signed in to change notification settings - Fork 412
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
Add a reproduction case for issue #4429 #4430
Conversation
Thanks for the repro case. Could you use |
Thanks, indeed. @craigfe After some upcoming changes, Dune cache will no longer require VCS information. The only reason it currently needs it is to support bulk download of build artifacts corresponding to a given commit but we found that in practice downloading artifacts for individual rules is simpler and fast enough. |
Thanks both. I've altered the reproduction to avoid Dune caching. I wasn't able to get a reproduction w/ Initialized empty Git repository in $TESTCASE_ROOT/.git/
$ echo "(executable (name main) (libraries dune-build-info))" > dune
$ cat >main.ml <<EOF
> ;; Printf.printf "internal version: %s\n"
> ( match Build_info.V1.version () with
> | None -> "None"
> | Some v -> Build_info.V1.Version.to_string v )
> EOF
$ dune exec ./main.exe
Info: Creating file dune-project with this contents:
| (lang dune 2.8)
internal version: None (Probably just me missing something obvious.) I had a quick look through the internals, but couldn't work out why the emitted |
It's because we don't include the actual info when building executables in the _build directory. This is so that
|
Signed-off-by: Craig Ferguson <me@craigfe.io>
Signed-off-by: Craig Ferguson <me@craigfe.io>
Thanks for the explanation :-) Now using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
No description provided.