From f56b3efb71051742f3112bf35bcedda0bc304e19 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 30 May 2026 16:10:38 +0100 Subject: [PATCH] style(lib/dune): apply ocamlformat to silence persistent build red MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- lib/dune | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/dune b/lib/dune index 218a7e9..cda3989 100644 --- a/lib/dune +++ b/lib/dune @@ -4,12 +4,16 @@ ; the generated `.cjs` (eliminating the runtime `require()` of ; @hyperpolymath/affine-vscode, which used to fail when the adapter ; wasn't installed — see issues #104 / #139). + (rule (target affine_vscode_adapter_source.ml) - (deps (file ../packages/affine-vscode/mod.js)) + (deps + (file ../packages/affine-vscode/mod.js)) (action - (with-stdout-to %{target} - (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}'")))) + (with-stdout-to + %{target} + (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}'")))) (library (name affinescript)