Geiger report parsing does not seem to work with any dependency
To reproduce, create a new binary crate (here: ttt
), add any dependency, e.g. serde_json = "1.0"
, and execute
cargo geiger --all-dependencies --color always --output-format Json | gitlab-report -p geiger -f gl-sast > gl-sast-report.json
Giving the following output
Compiling serde v1.0.160
Compiling serde_json v1.0.96
Checking ryu v1.0.13
Checking itoa v1.0.6
{"artifact":"/home/b/ttt/target/debug/build/serde_json-119ada0a30c92fb7/build_script_build-119ada0a30c92fb7.d","emit":"dep-info"}
{"artifact":"/home/b/ttt/target/debug/build/serde-78df132c7f3adf6e/build_script_build-78df132c7f3adf6e.d","emit":"dep-info"}
{"artifact":"/home/b/ttt/target/debug/deps/itoa-5b8fd99974b6390b.d","emit":"dep-info"}
{"artifact":"/home/b/ttt/target/debug/deps/ryu-93d190a7b1b44962.d","emit":"dep-info"}
{"artifact":"/home/b/ttt/target/debug/deps/libitoa-5b8fd99974b6390b.rmeta","emit":"metadata"}
{"artifact":"/home/b/ttt/target/debug/deps/libryu-93d190a7b1b44962.rmeta","emit":"metadata"}
{"artifact":"/home/b/ttt/target/debug/build/serde_json-119ada0a30c92fb7/build_script_build-119ada0a30c92fb7","emit":"link"}
{"artifact":"/home/b/ttt/target/debug/build/serde-78df132c7f3adf6e/build_script_build-78df132c7f3adf6e","emit":"link"}
{"artifact":"/home/b/ttt/target/debug/deps/serde-b5990c1944150e07.d","emit":"dep-info"}
{"artifact":"/home/b/ttt/target/debug/deps/libserde-b5990c1944150e07.rmeta","emit":"metadata"}
{"artifact":"/home/b/ttt/target/debug/deps/serde_json-e87fa662b756d870.d","emit":"dep-info"}
{"artifact":"/home/b/ttt/target/debug/deps/libserde_json-e87fa662b756d870.rmeta","emit":"metadata"}
Checking ttt v0.1.0 (/home/b/ttt)
{"artifact":"/home/b/ttt/target/debug/deps/ttt-f8e9b9c431933199.d","emit":"dep-info"}
{"artifact":"/home/b/ttt/target/debug/deps/libttt-f8e9b9c431933199.rmeta","emit":"metadata"}
Finished dev [unoptimized + debuginfo] target(s) in 1.70s
Failed to parse file: /home/b/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.96/src/features_check/error.rs, Syn(Error("expected one of: `fn`, `extern`, `use`, `static`, `const`, `unsafe`,
`mod`, `type`, `struct`, `enum`, `union`, `trait`, `auto`, `impl`, `default`, `macro`, identifier, `self`, `super`, `crate`, `::`"), "/home/b/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.
96/src/features_check/error.rs")
Scanning done
error: failed to parse report: missing field `id` at line 1 column 2174
and an exit code of 130
Edited by Benedikt Weber