Skip to content

Unset the jobs variable from the opam config (faulty opam 2.0 behaviour) #92

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src-opam/dockerfile_opam.ml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ let all_ocaml_compilers hub_id arch distro =
@@ sandbox
@@ run "opam init -k git -a /home/opam/opam-repository --bare%s"
(if os_family = `Windows then " --disable-sandboxing" else "")
@@ run "sed -i.bak -e '/^jobs: /d' /home/opam/.opam/config && rm /home/opam/.opam/config.bak"
@@ compilers
@@ run "opam switch %s" (OV.(to_string (with_patch OV.Releases.latest None)))
@@ entrypoint_exec (pers @ ["opam"; "config"; "exec"; "--"])
Expand Down Expand Up @@ -445,6 +446,7 @@ let separate_ocaml_compilers hub_id arch distro =
@@ sandbox
@@ run "opam init -k git -a /home/opam/opam-repository --bare%s"
(if os_family = `Windows then "--disable-sandboxing" else "")
@@ run "sed -i.bak -e '/^jobs: /d' /home/opam/.opam/config && rm /home/opam/.opam/config.bak"
@@ add_remote
@@ variants
@@ run "opam switch %s" default_switch_name
Expand Down