Skip to content
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

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

panglesd
Copy link
Collaborator

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.

@panglesd panglesd changed the title Driver voodoo mode: generation of a sttaus.json with a list of redirections Driver voodoo mode: generation of a status.json with a list of redirections Feb 10, 2025
@panglesd panglesd added the no changelog This pull request does not need a changelog entry label Feb 10, 2025
in
let redirections = `List redirections in
`Assoc
[ ("files", files); ("failed", failed); ("redirections", redirections) ]
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is used here

Copy link
Collaborator Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh, "false" :-D

Copy link
Member

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 :-)

@panglesd
Copy link
Collaborator Author

This PR adds the status.json file also to the normal mode, with some fields from #1134 (comment) (package name and version)

@jonludlam
Copy link
Member

Nice, thanks!

@jonludlam jonludlam merged commit d88e04c into ocaml:master Feb 12, 2025
11 checks passed
@panglesd panglesd mentioned this pull request Feb 18, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This pull request does not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants