Skip to content

Commit

Permalink
Fix the ocaml/opam-repository version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Beckford committed Apr 14, 2024
1 parent d61c08a commit 1028f54
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changes

## 2.1.1

- `src/runtimelib/ocaml_opam_repository_gitref.txt` is used to fix the version
of the ocaml/opam-repository used during a `dkml init`.

## 2.0.0

- Remove `duniverse/` and opam monorepo Makefile targets since dune+shim
Expand Down
1 change: 1 addition & 0 deletions src/runtimelib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
%{target}
(progn
(echo "let version = String.trim {|%{read:version.txt}|}\n")
(echo "let ocaml_opam_repository_gitref = String.trim {|%{read:ocaml_opam_repository_gitref.txt}|}\n")
(echo "let ocaml_system = String.trim {|%{system}|}\n")))))

(library
Expand Down
2 changes: 2 additions & 0 deletions src/runtimelib/init_system.ml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ let create_opam_root ?disable_sandboxing ?reinit ~opamroot_dir_fp ~ocaml_home_fp
Fpath.to_string opamroot_dir_fp;
"-v";
Fpath.to_string ocaml_home_fp;
"-c";
"git+https://github.com/ocaml/opam-repository.git#" ^ Dkml_config.ocaml_opam_repository_gitref;
]
@ disable_sandboxing_args @ reinit_args)
in
Expand Down
1 change: 1 addition & 0 deletions src/runtimelib/ocaml_opam_repository_gitref.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6c3f73f42890cc19f81eb1dec8023c2cd7b8b5cd

0 comments on commit 1028f54

Please sign in to comment.