Skip to content

Commit bb60014

Browse files
committed
Keep opam-dune-lint happy
The OxCaml tests are using libraries stdlib_stable and stdlib_upstream_compatible which are only provided by OxCaml.
1 parent 34e4b0a commit bb60014

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- name: Install faked binaryen-bin package
2929
# It's faster to use a cached version
3030
run: opam install --fake binaryen-bin
31+
- run: sh tools/make_opam_dune_lint_dir.sh
3132
- uses: ocaml/setup-ocaml/lint-opam@v3
3233

3334
lint-fmt:

tools/make_opam_dune_lint_dir.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
# Define empty libraries stdlib_stable and stdlib_upstream_compatible
3+
# to keep opam-dune-lint happy (these libraries are OxCaml-specific).
4+
5+
mkdir opam_dune_lint_dir && cd opam_dune_lint_dir
6+
echo "(lang dune 3.20)" > dune-project
7+
touch stdlib_stable.opam
8+
touch stdlib_upstream_compatible.opam
9+
cat > dune <<EOF
10+
(library (public_name stdlib_stable))
11+
(library (public_name stdlib_upstream_compatible))
12+
EOF

0 commit comments

Comments
 (0)