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

Uses discontinued repository on Windows #547

Closed
Leonidas-from-XIV opened this issue Jun 15, 2022 · 4 comments · Fixed by #651
Closed

Uses discontinued repository on Windows #547

Leonidas-from-XIV opened this issue Jun 15, 2022 · 4 comments · Fixed by #651

Comments

@Leonidas-from-XIV
Copy link

I've been submitting an update to Merlin ocaml/merlin#1475 which uses Yojson 2.0.0. It turns out the CI on Windows fails because Yojson 2.0.0 is not available.

Further inspection shows that it uses https://github.com/fdopen/opam-repository-mingw.git#opam2 which is apparently discontinued. That probably means that there won't be many if all updates going forward. Though even despite the blog post stating August 2021 there still seems to be activity in that repository.

Looking at the source code

const defaultRepository =
platform !== Platform.Win32
? "https://github.com/ocaml/opam-repository.git"
: "https://github.com/fdopen/opam-repository-mingw.git#opam2";

this seems to be a deliberate decision, hence I am opening this ticket to discuss what's the best way to go forward with this.

@Alizter
Copy link

Alizter commented Jun 20, 2022

What is the planned OCaml support for Windows? I hear that opam 2.2 is intending to have Windows support, but I also have heard that 2.0 and 2.1 have also made this promise.

@Leonidas-from-XIV
Copy link
Author

So it turns out that the repo is still updated, but sometimes lags behind opam-repository. @fdopen, could you please weight in with an update on what the status of that repository is?

@johnridesabike
Copy link

This just bit me after I upgraded ocamlformat and opam install stopped working on Windows (but kept working on MacOS and Linux). Debugging this can be quite confusing if you don't know what's going on.

If a fix isn't imminent, then it may be at least helpful to include a disclaimer about Windows and OPAM in the Readme?

johnridesabike added a commit to johnridesabike/acutis that referenced this issue Mar 12, 2023
This is temporary until this issue is resolved:
<ocaml/setup-ocaml#547>
@smorimoto
Copy link
Member

Related PR: #651

@smorimoto smorimoto linked a pull request Apr 27, 2023 that will close this issue
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 a pull request may close this issue.

4 participants