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

Add os_type label to enable/disable based on Sys.os_type #433

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

polytypic
Copy link
Contributor

@polytypic polytypic commented Jul 27, 2023

This PR adds ability to skip blocks by comparing against Sys.os_type.

The desire to have something like this arose when working to allow Eio's MDX based tests to run on Windows and I'm using this feature there.

Also related is the issue that proposes a more general ability to skip blocks. The feature that this proposes is less ambitious (less general) and very similar to the existing OCaml version constraint supported by MDX and the implementation follows the same pattern.

@polytypic polytypic marked this pull request as ready for review August 21, 2023 14:20
@trefis
Copy link
Collaborator

trefis commented Sep 20, 2023

The CI failures are all 5.1 related, but we just merged your other PR adding support for 5.1.
So if you rebase and take care of the conflict in the changelog, this should be good to merge.

@polytypic
Copy link
Contributor Author

polytypic commented Sep 21, 2023

I rebased the PR.

It would be great to get a new release of mdx soon. Eio could use this feature and OCaml 5.1 has been released, so having the 5.1 fix would be really nice.

@trefis trefis merged commit 9586620 into realworldocaml:main Sep 21, 2023
3 checks passed
tmattio added a commit to tmattio/opam-repository that referenced this pull request Sep 27, 2023
CHANGES:

#### Added

- Add `os_type` label to enable/disable based on `Sys.os_type` (realworldocaml/mdx#433,
  @polytypic)

- Make MDX compatible with OCaml 5.1 (realworldocaml/mdx#435, @polytypic and @kit-ty-kate)

#### Changed

- Vendored the odoc-parser library, removing the need to have it
  as a dependency. (realworldocaml/mdx#430, @jonludlam)
nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
CHANGES:

#### Added

- Add `os_type` label to enable/disable based on `Sys.os_type` (realworldocaml/mdx#433,
  @polytypic)

- Make MDX compatible with OCaml 5.1 (realworldocaml/mdx#435, @polytypic and @kit-ty-kate)

#### Changed

- Vendored the odoc-parser library, removing the need to have it
  as a dependency. (realworldocaml/mdx#430, @jonludlam)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants