Repository navigation
haddock-project fixes - #8919
Conversation
4ad4ab9 to
5e24585
Compare
|
@Kleidukos do you know a package published on |
|
haskell/hackage-server#1119 is still open... |
|
The CI failure seem to be expected at this point? I've tentatively marked it for backport to 3.10 branch, since it fixes (semi-) regressions and it's not a huge risky PR. |
It's unexpected. I'll try to reproduce it locally. |
|
Looking closer, these CI failures are expected. I changed the log output of the
|
5e24585 to
076f70c
Compare
|
@Mikolaj do you want me to create a PR against the |
No, thank you. Mergify will do this automatically for us and I sincerely hope there won't be any conflicts. |
|
nice :), there shouldn't be any. |
dbebb68 to
53cc424
Compare
e0b461a to
ec1027a
Compare
@coot I don't even know if it's allowed. Hackage doesn't seem to support it? |
It is but a comment there |
ec1027a to
4d2e7bd
Compare
|
I pushed one more commit to fix #8958. |
|
@coot could you add a test that ensures that dependencies are handled correctly? |
|
yes, I am planning to do that. |
ce698df to
24c4c07
Compare
Mikolaj
left a comment
There was a problem hiding this comment.
After a quick look, LGTM, but a more thorough review would be welcome.
Whether we backport is up to @Kleidukos.
|
@Mergifyio backport 3.10 |
✅ Backports have been createdDetails
|
|
@julialongtin would you like to perform the QA procedure on this PR? :) |
|
@coot you reached 2 approvals now, so you can put the |
|
Thanks @ulysses4ever, @Kleidukos & @Mikolaj for cooperation. |
|
Thank you, @coot. That's a long struggle, but many people waited years for these features and here they are finally, more and more usable. |
|
Shouldn't mergify do its job by now? |
|
I think you commented before the full 48 hours passed. And now the timer is probably reset. But let's fix it. |
|
@Mergifyio refresh |
✅ Pull request refreshed |
|
It says "Unable to update: user coot is unknown. Please make sure coot has logged in Mergify dashboard." What was that about? |
|
In the failure like this (" ❌ Queue: Embarked in merge train"), rebase is usually the way to go (Mergify fails to rebase a PR from a non-admin user on its own). "Refresh" works better when the bot thinks that some checks are not satisfied. |
|
@mergify rebase |
This patch fixes a bug where a sublibrary overwrites a library directory. This leads to overwriting `*.haddock` files, which results in missing entries in various indexes (e.g. the html index, quicksearch).
This patch makes `haddock-project` use `--local` option by default. Since its the default, it is removed. Also `--gen-index`, `--gen-contents`, `--hyperlinked-source` and `--quickjump` are removed since they are always turned on. Added a haddock-project test.
`haddock-project` command need to build the project so that haddocks of the dependencies are available in the store. Fixes #8958.
✅ Branch has been successfully rebased |
d74a550 to
2c597e8
Compare
This PR includes three commits which later
haddock-projectcommand:UnitIdinstead of package namehaddock-projectoptions (fixes Theindex.htmlthat are supposed to be produced bycabal haddock-projectare not here. #8843)haddock-project --localdoes not copy non-boot dependencies to output dir #8958)QA Notes:
cabal haddock-projectRunning
cabal haddock-projectshould create documentation folder./haddockswhich contains:./haddocks/<package-name>folder for every dependency of the project; in particular./haddocks/<package-name>/<package-name>.haddockshould be present;./haddocks/index.html;./haddocks/quick-jump.min.jsWhen serving the
./haddocksfolder withhttpserver the index page should list all the local packages. Using quick jump from the index page should allow to find any identifier found in any of the local packages, when viewing documentation of one of them quick jump should allow to jump to any identifier of that package. All entities should be linked, e.g. if you findIOin the documentation, it should lead you to base documentation ofIO.cabal haddock-project --hackageRunning
cabal haddock-project --hackageshould create documentation folder./haddockswhich only contains documentation of local packages. Identifiers from dependencies should be linked tohackage.Please include the following checklist in your PR:
Bonus points for added automated tests!