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

setup-ocaml fails because darcs is not available #872

Closed
JasonGross opened this issue Sep 30, 2024 · 11 comments · Fixed by #879 or #909
Closed

setup-ocaml fails because darcs is not available #872

JasonGross opened this issue Sep 30, 2024 · 11 comments · Fixed by #879 or #909
Labels
bug Something isn't working upstream

Comments

@JasonGross
Copy link

JasonGross commented Sep 30, 2024

Does opam really depend on darcs?

Reading package lists...
  Building dependency tree...
  Reading state information...
  Package darcs is not available, but is referred to by another package.
  This may mean that the package is missing, has been obsoleted, or
  is only available from another source
  
  E: Package 'darcs' has no installation candidate
  Notice: An error has been caught in some system package index files, so the system package index files have been re-synchronised, and the system package installation has been retried: the process '/usr/bin/sudo' failed with exit code 100
  /usr/bin/sudo apt-get update
  Hit:1 http://azure.archive.ubuntu.com/ubuntu noble InRelease
  Get:2 http://azure.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
  Get:3 http://azure.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
  Get:4 http://azure.archive.ubuntu.com/ubuntu noble-security InRelease [126 kB]
  Hit:5 https://packages.microsoft.com/repos/azure-cli noble InRelease
  Get:6 https://packages.microsoft.com/ubuntu/24.04/prod noble InRelease [3600 B]
  Get:7 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [535 kB]
  Get:8 http://azure.archive.ubuntu.com/ubuntu noble-updates/main Translation-en [130 kB]
  Get:9 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 c-n-f Metadata [8652 B]
  Get:10 http://azure.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [377 kB]
  Get:11 http://azure.archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [156 kB]
  Get:12 http://azure.archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f Metadata [14.8 kB]
  Get:13 http://azure.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [10.6 kB]
  Get:14 http://azure.archive.ubuntu.com/ubuntu noble-backports/universe amd64 c-n-f Metadata [1104 B]
  Get:15 http://azure.archive.ubuntu.com/ubuntu noble-security/main amd64 Packages [380 kB]
  Get:16 http://azure.archive.ubuntu.com/ubuntu noble-security/main Translation-en [82.9 kB]
  Get:17 http://azure.archive.ubuntu.com/ubuntu noble-security/main amd64 c-n-f Metadata [4560 B]
  Get:18 http://azure.archive.ubuntu.com/ubuntu noble-security/universe amd64 Packages [272 kB]
  Get:19 http://azure.archive.ubuntu.com/ubuntu noble-security/universe Translation-en [115 kB]
  Get:20 http://azure.archive.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f Metadata [10.3 kB]
  Get:21 https://packages.microsoft.com/ubuntu/24.04/prod noble/main armhf Packages [4999 B]
  Get:22 https://packages.microsoft.com/ubuntu/24.04/prod noble/main arm64 Packages [8154 B]
  Get:23 https://packages.microsoft.com/ubuntu/24.04/prod noble/main amd64 Packages [11.8 kB]
  Fetched 2505 kB in 0s (6456 kB/s)
  Reading package lists...
  /usr/bin/sudo apt-get --yes install bubblewrap darcs g++-multilib gcc-multilib mercurial musl-tools rsync
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Package darcs is not available, but is referred to by another package.
  This may mean that the package is missing, has been obsoleted, or
  is only available from another source
  
  E: Package 'darcs' has no installation candidate

https://github.com/mit-plv/fiat-crypto/actions/runs/11099505411/job/30836037467#step:3:24
cf actions/runner-images#10476, I guess GitHub recently updated the default runner

@psafont
Copy link
Contributor

psafont commented Oct 4, 2024

Came upon this when updating a workflow from 22.04 to 24.04.

Darks can be useful for fetching dev repositories, there are a handful of packages using it for development in the upstream opam repository:

$ rg "darcs\+" -c
packages/bindlib/bindlib.4.0.3/opam:1
packages/bindlib/bindlib.4.0/opam:1
packages/bindlib/bindlib.4.0.2/opam:1
packages/imagelib/imagelib.20160413/opam:1
packages/ocamlmod/ocamlmod.0.0.9/opam:1
packages/ocamlmod/ocamlmod.0.0.8/opam:1
packages/ocamlmod/ocamlmod.0.0.7/opam:1
packages/gles3/gles3.20160505.alpha/opam:1
packages/gles3/gles3.20160307.alpha/opam:1
packages/glsurf/glsurf.3.3/opam:1
packages/glsurf/glsurf.3.3.1/opam:1
packages/argot/argot.1.1/opam:1

@smorimoto smorimoto added bug Something isn't working upstream labels Oct 4, 2024
@smorimoto
Copy link
Member

There are prebuilt binaries for macOS and Windows, but otherwise it's not really realistic to install darcs, considering the build / installation time. https://darcs.net

@smorimoto
Copy link
Member

It might be a good idea to let the user install non-git VCSs, not install them by default? CC: @dra27 @avsm

@smorimoto
Copy link
Member

Related issue: #860

@JasonGross
Copy link
Author

It might be a good idea to let the user install non-git VCSs, not install them by default? CC: @dra27 @avsm

Yes, please let the user choose whether or not the VCSs get installed, and at the very least don't fail if ones the user hasn't explicitly requested can't be installed

@aantron
Copy link
Contributor

aantron commented Oct 14, 2024

This is going to affect an increasing number of projects as GitHub Actions switches runners to Ubuntu 24.04 by default.

aantron added a commit to aantron/dream that referenced this issue Oct 14, 2024
@smorimoto
Copy link
Member

I was too busy this month to work on this. The situation seems serious, so I will check anyway.

Khady added a commit to ahrefs/slack that referenced this issue Oct 15, 2024
@smorimoto smorimoto linked a pull request Oct 15, 2024 that will close this issue
@smorimoto
Copy link
Member

Fixed!

semgrep-ci bot pushed a commit to semgrep/semgrep that referenced this issue Oct 15, 2024
…semgrep-proprietary#2410)

Ubuntu 24.04 and setup-ocaml don't work well together now.

See ocaml/setup-ocaml#872.

build-test-windows-x86 uses windows-latest, and check-semgrep-javascript
uses ubuntu-latest-16-core, so they're not affected as of now, but we'll
see.

synced from Pro 8c079027934baa957d6b6bbd068a4a5125cd75f9
semgrep-ci bot pushed a commit to semgrep/semgrep that referenced this issue Oct 15, 2024
…semgrep-proprietary#2410)

Ubuntu 24.04 and setup-ocaml don't work well together now.

See ocaml/setup-ocaml#872.

build-test-windows-x86 uses windows-latest, and check-semgrep-javascript
uses ubuntu-latest-16-core, so they're not affected as of now, but we'll
see.

synced from Pro 8c079027934baa957d6b6bbd068a4a5125cd75f9
semgrep-ci bot pushed a commit to semgrep/semgrep that referenced this issue Oct 15, 2024
…semgrep-proprietary#2410)

Ubuntu 24.04 and setup-ocaml don't work well together now.

See ocaml/setup-ocaml#872.

build-test-windows-x86 uses windows-latest, and check-semgrep-javascript
uses ubuntu-latest-16-core, so they're not affected as of now, but we'll
see.

synced from Pro 8c079027934baa957d6b6bbd068a4a5125cd75f9
semgrep-ci bot pushed a commit to semgrep/semgrep that referenced this issue Oct 16, 2024
…semgrep-proprietary#2410)

Ubuntu 24.04 and setup-ocaml don't work well together now.

See ocaml/setup-ocaml#872.

build-test-windows-x86 uses windows-latest, and check-semgrep-javascript
uses ubuntu-latest-16-core, so they're not affected as of now, but we'll
see.

synced from Pro 8c079027934baa957d6b6bbd068a4a5125cd75f9
aryx pushed a commit to semgrep/semgrep that referenced this issue Oct 16, 2024
…semgrep-proprietary#2410)

Ubuntu 24.04 and setup-ocaml don't work well together now.

See ocaml/setup-ocaml#872.

build-test-windows-x86 uses windows-latest, and check-semgrep-javascript
uses ubuntu-latest-16-core, so they're not affected as of now, but we'll
see.

synced from Pro 8c079027934baa957d6b6bbd068a4a5125cd75f9
@JasonGross
Copy link
Author

@smorimoto
Copy link
Member

@JasonGross It didn't work well due to JavaScript pitfalls! I made a fix for it and it will be released within an hour.

@smorimoto smorimoto linked a pull request Dec 6, 2024 that will close this issue
@smorimoto
Copy link
Member

@JasonGross Fixed and released!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
4 participants