-
Notifications
You must be signed in to change notification settings - Fork 95
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
Driver voodoo mode: generation of a status.json
with a list of redirections
#1307
Conversation
sttaus.json
with a list of redirectionsstatus.json
with a list of redirections
src/driver/bin/odoc_driver_voodoo.ml
Outdated
in | ||
let redirections = `List redirections in | ||
`Assoc | ||
[ ("files", files); ("failed", failed); ("redirections", redirections) ] |
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.
If we're creating this file here now we'll have to correctly put in the 'files' field
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.
this is used here
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.
Right. And I guess the "failed"
field?
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.
uh, "false" :-D
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.
The idea is that we report the solver failure / build failure if there's been a problem. If we're executing this code, we've by definition not failed :-)
This PR adds the status.json file also to the normal mode, with some fields from #1134 (comment) (package name and version) |
Nice, thanks! |
This allows in ocaml.org to redirect the old links (
p/<pkgname>/<version>/<modulename>/
) to the new ones (p/<pkgname>/<version>/<libraryname>/<modulename>/
).To be combined with this (WIP) branch.