GitHub user qingfeng-occ created a discussion: Question: Why is Binding OCaml 
CI test failing on lib/operator.mli without changes?

Hi 
I encountered a strange problem when submitting my PR. I did not modify 
lib/operor.mli, but the `Binding OCaml CI/test (pull_dequest)` step of the CI 
test reported an error indicating a formatted error. Is this a problem with the 
CI test? 
The details are as follows:

File "lib/operator.mli", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u 
_build/default/lib/operator.mli _build/default/lib/.formatted/operator.mli
diff --git a/_build/default/lib/operator.mli 
b/_build/default/lib/.formatted/operator.mli
index 0b156fb..654e4a0 100644
--- a/_build/default/lib/operator.mli
+++ b/_build/default/lib/.formatted/operator.mli
@@ -26,17 +26,15 @@
     {2 Basic Usage}
 
     {[
-      (* Create an operator for local filesystem *)
-      let op =
-        Operator.new_operator "fs" [ ("root", "/tmp") ] |> Result.get_ok
-      in
+    (* Create an operator for local filesystem *)
+    let op = Operator.new_operator "fs" [ ("root", "/tmp") ] |> Result.get_ok 
in
 
-      (* Write data to a file *)
-      let _ = Operator.write op "hello.txt" (Bytes.of_string "Hello, World!") 
in
+    (* Write data to a file *)
+    let _ = Operator.write op "hello.txt" (Bytes.of_string "Hello, World!") in
 
-      (* Read data back *)
-      let content = Operator.read op "hello.txt" |> Result.get_ok in
-      print_endline (String.of_bytes content)
+    (* Read data back *)
+    let content = Operator.read op "hello.txt" |> Result.get_ok in
+    print_endline (String.of_bytes content)
     ]} *)
 
 (** {2 Core Operations} *)
Error: Process completed with exit code 1.

GitHub link: https://github.com/apache/opendal/discussions/7253

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to