Skip to content

Commit f56b3ef

Browse files
hyperpolymathclaude
andcommitted
style(lib/dune): apply ocamlformat to silence persistent build red
The `affine_vscode_adapter_source.ml` rule added in PR #380 has been failing the `Check formatting` step on every CI run since landing. This patch applies ocamlformat's preferred wrapping (blank line before `(rule`, `deps` / `with-stdout-to` / `bash` split across lines) so the rule no longer trips formatter `diff` exit-1. Pure formatting — no behavioural change. `dune build`-generated output for `affine_vscode_adapter_source.ml` is byte-identical. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ae3fbae commit f56b3ef

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

lib/dune

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
; the generated `.cjs` (eliminating the runtime `require()` of
55
; @hyperpolymath/affine-vscode, which used to fail when the adapter
66
; wasn't installed — see issues #104 / #139).
7+
78
(rule
89
(target affine_vscode_adapter_source.ml)
9-
(deps (file ../packages/affine-vscode/mod.js))
10+
(deps
11+
(file ../packages/affine-vscode/mod.js))
1012
(action
11-
(with-stdout-to %{target}
12-
(bash "echo '(* AUTO-GENERATED from packages/affine-vscode/mod.js. Do not edit. *)'; echo 'let source = {affine_vscode|'; cat %{dep:../packages/affine-vscode/mod.js}; echo '|affine_vscode}'"))))
13+
(with-stdout-to
14+
%{target}
15+
(bash
16+
"echo '(* AUTO-GENERATED from packages/affine-vscode/mod.js. Do not edit. *)'; echo 'let source = {affine_vscode|'; cat %{dep:../packages/affine-vscode/mod.js}; echo '|affine_vscode}'"))))
1317

1418
(library
1519
(name affinescript)

0 commit comments

Comments
 (0)