https://opendal.apache.org/ logo
Ocaml building issues
# general
y
hi community, I want to run
cargo clippy
for
oay
, I tried
cargo clippy --workspace --package oay
but got the following error, which seems unrelated to
oay
, any suggestion?
Copy code
txt
error: failed to run custom build command for `ocaml-sys v0.22.3`

Caused by:
  process didn't exit successfully: `/home/flash/projects/opendal/target/debug/build/ocaml-sys-a4322dc780af93dd/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=OCAMLOPT
  cargo:rerun-if-env-changed=OCAML_VERSION
  cargo:rerun-if-env-changed=OCAML_WHERE_PATH

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/flash/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ocaml-sys-0.22.3/build.rs:143:11
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `ocaml-boxroot-sys v0.2.0`

Caused by:
  process didn't exit successfully: `/home/flash/projects/opendal/target/debug/build/ocaml-boxroot-sys-d78018cce8ac0c70/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=vendor/boxroot/boxroot.c
  cargo:rerun-if-changed=vendor/boxroot/boxroot.h
  cargo:rerun-if-env-changed=OCAMLOPT
  cargo:rerun-if-env-changed=OCAML_WHERE_PATH

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/flash/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ocaml-boxroot-sys-0.2.0/build.rs:108:26
x
Hi, OpenDAL is a large workspace now.
This error is generated by ocaml-binding which need to have ocaml setup.
y
but I just want to use clippy for the small
oay
, also need ocaml?
x
because you add
--workspace
here.
y
I also tried
cargo clippy
, it doesn't check
oay
x
the simplest way is
cd bin/oay
and running cargo clippy.
Or, use
cargo clippy -p oay
y
it works, thank you
8 Views