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
Moving to latest dune #425
Conversation
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.
Special reviewing attention should be paid to these changes as shell quoting is notably difficult.
The arguments to this script are located in development.docker-compose.yaml, and look like "--foo=bar" "--baz" "--spam=eggs break=fast". This list was prepended with the executable produced by dune to call it directly.
We used to do COMMAND="${*@Q}", then sh -c "$COMMAND".
What I now do is remove the direct call to the executable, in favor of a simpler dune exec bin/main.exe -- "$@". This means the arguments now need not be super quoted because of the call to sh, but still need to be somewhat quoted so they don't break dune.
Thanks for working on fixing this! I also see an error that goes like this, when I stop the development docker container and restart it. Adding |
I can't reproduce that... But I |
If I remove the files, the docker container starts up, but I run into the issue again if I shutdown the container and start it again. It may be a difference between running docker on Linux vs MacOS hosts, which is why you're probably not running into it. |
|
I added it to the ignore file. As I can't test it on my machine I'm going to trust you on this one :) |
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 to me! Thanks!
Since #420, if building using the latest versions of dune (above
3.5.0), we had an error in the pipeline:This is because in
pipeline/reload.shwe usedune build --watchand then calldev/github-app.sh, which callsdune build. This workflow has been made impossible in dune 3.6 and up with the use of lockfiles.The simplest fix was to use
dune exec --watch, introduced in the latest version of dune (3.7.0), and to calldev/github-app.shbefore the call to watch.Using the latest dune version introduced a bit of noise, sorry for that.