Skip to content

Commit 40ef7d0

Browse files
authored
Merge pull request #235 from AltGr/up-deps
Upgrade dependencies (jsoo in particular)
2 parents 4359c6c + 7f8f125 commit 40ef7d0

File tree

4 files changed

+38
-40
lines changed

4 files changed

+38
-40
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ocaml/opam2:alpine-3.7-ocaml-4.05 as compilation
1+
FROM ocaml/opam2:alpine-3.7 as compilation
22
LABEL Description="learn-ocaml building" Vendor="OCamlPro"
33

44
WORKDIR learn-ocaml
@@ -8,9 +8,9 @@ RUN sudo chown -R opam:nogroup .
88

99
ENV OPAMYES true
1010
RUN echo 'archive-mirrors: [ "https://opam.ocaml.org/cache" ]' >> ~/.opam/config
11+
RUN opam repository set-url default http://opam.ocaml.org
1112
RUN opam switch 4.05
1213
RUN echo 'pre-session-commands: ["sudo" "apk" "add" depexts]' >>~/.opam/config
13-
RUN opam update
1414
RUN opam install . --deps-only --locked
1515

1616
ADD static static
@@ -19,11 +19,12 @@ ADD src src
1919
ADD scripts scripts
2020
ADD Makefile Makefile
2121
ADD demo-repository demo-repository
22-
RUN echo "bytelink += [\"-custom\"]" >addflags.ocp
22+
ADD dune-project dune-project
23+
ADD dune dune
2324
RUN sudo chown -R opam:nogroup .
2425

2526
ENV OPAMVERBOSE 1
26-
RUN opam install . --destdir /home/opam/install-prefix
27+
RUN opam install . --destdir /home/opam/install-prefix --locked
2728

2829

2930

learn-ocaml.opam

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ depends: [
2020
"cohttp-lwt-unix" {>= "1.0.0"}
2121
"conf-git"
2222
"decompress" {= "0.8.1"}
23-
"dune" {build & = "1.1.1"}
23+
"dune" {build & >= "1.1.1"}
2424
"easy-format" {>= "1.3.0" }
2525
"ipaddr" {= "2.8.0" }
2626
"ezjsonm"
27-
"js_of_ocaml" {>= "3.1.0" & < "3.3"}
27+
"js_of_ocaml" {>= "3.3.0"}
2828
"js_of_ocaml-compiler"
2929
"js_of_ocaml-lwt"
3030
"js_of_ocaml-ppx"
@@ -61,9 +61,3 @@ description: """
6161
This contains the binaries forming the engine for the learn-ocaml platform, and
6262
the common files. A demo exercise repository is also provided as example.
6363
"""
64-
pin-depends: [
65-
[
66-
"js_of_ocaml.3.2.0"
67-
"git+https://github.com/AltGr/js_of_ocaml.git#fix-oc-utf8"
68-
]
69-
]

learn-ocaml.opam.locked

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,52 @@ homepage: "https://github.com/ocaml-sf/learn-ocaml"
1414
bug-reports: "https://github.com/ocaml-sf/learn-ocaml/issues"
1515
depends: [
1616
"base" {= "v0.9.4"}
17-
"base64" {= "2.2.0"}
18-
"cmdliner" {= "1.0.2"}
19-
"cohttp" {= "1.1.0"}
20-
"cohttp-lwt-unix" {= "1.0.2"}
17+
"base64" {= "2.3.0"}
18+
"cmdliner" {= "1.0.3"}
19+
"cohttp" {= "1.1.1"}
20+
"cohttp-lwt" {= "1.1.1"}
21+
"cohttp-lwt-unix" {= "1.2.0"}
22+
"conduit" {= "1.3.0"}
23+
"conduit-lwt" {= "1.3.0"}
24+
"conduit-lwt-unix" {= "1.3.0"}
2125
"conf-git" {= "1.0"}
2226
"conf-libev" {= "4-11"}
27+
"conf-openssl" {= "1"}
28+
"cstruct" {= "3.3.0"}
2329
"decompress" {= "0.8.1"}
24-
"dune" {= "1.1.1"}
30+
"dune" {= "1.6.3"}
2531
"easy-format" {= "1.3.1"}
26-
"ezjsonm" {= "0.5.0"}
27-
"ipaddr" {= "2.8.0" }
28-
"js_of_ocaml" {= "3.2.0"}
29-
"js_of_ocaml-compiler" {= "3.2.1"}
30-
"js_of_ocaml-lwt" {= "3.2.1"}
31-
"js_of_ocaml-ppx" {= "3.2.0"}
32-
"js_of_ocaml-toplevel" {= "3.2.0"}
33-
"js_of_ocaml-tyxml" {= "3.2.0"}
32+
"ezjsonm" {= "0.6.0"}
33+
"ipaddr" {= "2.8.0"}
34+
"js_of_ocaml" {= "3.3.0"}
35+
"js_of_ocaml-compiler" {= "3.3.0"}
36+
"js_of_ocaml-lwt" {= "3.3.0"}
37+
"js_of_ocaml-ppx" {= "3.3.0"}
38+
"js_of_ocaml-toplevel" {= "3.3.0"}
39+
"js_of_ocaml-tyxml" {= "3.3.0"}
40+
"jsonm" {= "1.0.1"}
3441
"lwt" {= "3.3.0"}
3542
"lwt_react" {= "1.1.1"}
3643
"lwt_ssl" {= "1.1.2"}
37-
"magic-mime" {= "1.1.0"}
38-
"markup" {= "0.7.6"}
44+
"magic-mime" {= "1.1.1"}
45+
"markup" {= "0.8.0"}
3946
"ocaml" {= "4.05.0"}
4047
"ocamlfind" {= "1.8.0"}
4148
"ocp-indent-nlfork" {= "1.5.3"}
4249
"ocp-ocamlres" {= "0.4"}
4350
"ocplib-json-typed" {= "0.6"}
44-
"odoc" {build & = "1.3.0"}
51+
"odoc" {= "1.3.0"}
4552
"omd" {= "1.3.1"}
46-
"pprint" {= "20171003"}
47-
"ppx_cstruct" {= "3.2.1"}
53+
"pprint" {= "20180528"}
54+
"ppx_cstruct" {= "3.3.0"}
4855
"ppx_tools" {= "5.0+4.05.0"}
4956
"react" {= "1.2.1"}
5057
"reactiveData" {= "0.2.1"}
51-
"tyxml" {= "4.2.0"}
58+
"ssl" {= "0.5.7"}
59+
"tyxml" {= "4.3.0"}
60+
"uri" {= "1.9.7"}
5261
"uutf" {= "1.0.1"}
53-
"yojson" {= "1.4.1"}
62+
"yojson" {= "1.5.0"}
5463
]
5564
build: [
5665
[make "static"]
@@ -65,9 +74,3 @@ description: """
6574
This contains the binaries forming the engine for the learn-ocaml platform, and
6675
the common files. A demo exercise repository is also provided as example.
6776
"""
68-
pin-depends: [
69-
[
70-
"js_of_ocaml.3.2.0"
71-
"git+https://github.com/AltGr/js_of_ocaml.git#fix-oc-utf8"
72-
]
73-
]

src/grader/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
(modes byte)
145145
(libraries js_of_ocaml
146146
js_of_ocaml-lwt
147-
js_of_ocaml.syntax
147+
js_of_ocaml-ppx
148148
ezjsonm
149149
ocplib-json-typed.browser
150150
learnocaml_repository
@@ -164,7 +164,7 @@
164164
ezjsonm
165165
ocplib-json-typed.browser
166166
js_of_ocaml
167-
js_of_ocaml.syntax
167+
js_of_ocaml-ppx
168168
ocplib_i18n
169169
learnocaml_repository
170170
learnocaml_report

0 commit comments

Comments
 (0)