-
Notifications
You must be signed in to change notification settings - Fork 25
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
topkg publish dies with ocamlbuild plugins #80
Comments
Yes it's because of the ad-hoc support to publish docs (see #24). A work around it to simply replace |
@pqwy mentions it should just be a matter of adding the |
Yeah, #81 does it. It's a bit hacky. But not terribly, given how doc building fits in with the rest. |
Fixed by 9582ee0 |
This fix seems to break doc generation when you have a custom |
See #93 for a continuation of this PR. |
Why doesn't @pqwy's solution work ? I don't consider this mirage/ocaml-github@65c1a17 to be a solution. |
Which solution? I don't understand what this PR is solving. With that commit in, I get:
|
It also works when using |
Hum ok I understand the initial problem better now. My issue si that I need to read (and compile) |
Last edit: actually if |
We have a total, head-on collision of requirements here. I require additional Use case is anything that uses You have extra generated files, and the rules to build them are registered in your Use case is really any custom rules for generating This change completely and comprehensively disabled A way out of the stalemate is to actually rethink how the doc-command should relate to the build-command, while keeping |
@pqwy but can't you just build before building the docs? e.g. in your case, |
So I discussed this with @pqwy in person and I'll simply try to reuse the build command specified in the |
Any update on this? It is unfortunately not possible to generate docs with 0.8.1 if using a myocamlbuid.ml file. Not sure what is the recommended way to workaround that: use odig and do some magic during |
@dbuenzli I confirm that it works well on https://github.com/samoht/ocaml-github/tree/topkg. Thanks! |
If there are magic command line arguments necessary to get
myocamlbuild.ml
to compile -- like it referencing extra modules given by-plugin-tag
--topkg publish
will bomb out because doc generation doesn't reuse the build command line.With the up-and-coming glorious era of OCamlbuild plugins published, and distributed, on a massive scale, this should be re-thought.
The text was updated successfully, but these errors were encountered: