Skip to content

Commit a1f5d6e

Browse files
committed
build: add opam update to static-build.sh
Otherwise, opam is unable to find a solution to the dependencies of learn-ocaml with the new pinned package versions.
1 parent b21586f commit a1f5d6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/static-build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ git ls-files -z | xargs -0 tar c | \
1414
sh -uexc \
1515
'tar x >&2 &&
1616
sudo apk add openssl-libs-static bash >&2 &&
17-
opam switch create . ocaml-system --deps-only --locked >&2 &&
17+
opam update >&2 &&
18+
opam switch create . 5.1.1 --deps-only --locked >&2 &&
1819
opam exec make LINKING_MODE=static >&2 &&
1920
tar c -hC _build/install/default/bin .' | \
2021
tar vx

0 commit comments

Comments
 (0)