Skip to content

Commit 4f0f3ca

Browse files
style(lib/dune): apply ocamlformat to silence persistent build red (#466)
## Summary - `lib/dune`'s `affine_vscode_adapter_source.ml` rule (added in PR #380) has been failing the CI `Check formatting` step on every run since it landed — main has been red on this for days. - Apply ocamlformat's preferred wrapping: blank line before `(rule`, `deps` / `with-stdout-to` / `bash` split across lines. Diff verbatim matches what the failing run printed. - Pure formatting — `dune build` output for `affine_vscode_adapter_source.ml` is byte-identical. ## Test plan - [ ] CI `build` job passes (the `Check formatting` step is what was red). - [ ] No other regressions — only `lib/dune` touched. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ae3fbae commit 4f0f3ca

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)