[INFO] cloning repository https://github.com/kazuk/sbom-ghr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kazuk/sbom-ghr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuk%2Fsbom-ghr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuk%2Fsbom-ghr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 057ad9d4becc988d938d81ba486e42414f24f3a1 [INFO] checking kazuk/sbom-ghr against master#18a6d911caba59605eb03db1452848a85d2e5879 for pr-112743 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuk%2Fsbom-ghr" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kazuk/sbom-ghr on toolchain 18a6d911caba59605eb03db1452848a85d2e5879 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kazuk/sbom-ghr [INFO] finished tweaking git repo https://github.com/kazuk/sbom-ghr [INFO] tweaked toml for git repo https://github.com/kazuk/sbom-ghr written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kazuk/sbom-ghr already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded spdx-expression v0.5.2 [INFO] [stderr] Downloaded spdx-rs v0.5.1 [INFO] [stderr] Downloaded clap v3.2.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff51fac31887543c86549835ab4c9af26f87358c6353e9f33dade854de23c69d [INFO] running `Command { std: "docker" "start" "-a" "ff51fac31887543c86549835ab4c9af26f87358c6353e9f33dade854de23c69d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff51fac31887543c86549835ab4c9af26f87358c6353e9f33dade854de23c69d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff51fac31887543c86549835ab4c9af26f87358c6353e9f33dade854de23c69d", kill_on_drop: false }` [INFO] [stdout] ff51fac31887543c86549835ab4c9af26f87358c6353e9f33dade854de23c69d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b70324ee512f9fd1bef5ea450535e26102d0785a6e1cfa66f4ececafb7ac43ce [INFO] running `Command { std: "docker" "start" "-a" "b70324ee512f9fd1bef5ea450535e26102d0785a6e1cfa66f4ececafb7ac43ce", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling serde_derive v1.0.139 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling serde v1.0.139 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling tokio v1.20.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking tracing v0.1.35 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking hashbrown v0.12.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Checking indexmap v1.9.1 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling libz-sys v1.1.8 [INFO] [stderr] Compiling zstd-sys v1.6.3+zstd.1.5.2 [INFO] [stderr] Checking crypto-common v0.1.5 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Compiling libssh2-sys v0.2.23 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling backtrace v0.3.66 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling rustversion v1.0.7 [INFO] [stderr] Compiling zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking time v0.3.11 [INFO] [stderr] Compiling libgit2-sys v0.13.4+1.4.2 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking object v0.29.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Compiling hyperx v1.4.0 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking base64ct v1.0.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking password-hash v0.3.2 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking pem v1.1.0 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Compiling snafu-derive v0.7.1 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking ipnet v2.5.0 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Checking zeroize v1.5.6 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking secrecy v0.8.0 [INFO] [stderr] Checking jsonwebtoken v8.1.1 [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking spdx-expression v0.5.2 [INFO] [stderr] Compiling strum_macros v0.24.2 [INFO] [stderr] Checking serde_path_to_error v0.1.7 [INFO] [stderr] Checking pbkdf2 v0.10.1 [INFO] [stderr] Compiling clap_derive v3.2.7 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Checking sha1 v0.10.1 [INFO] [stderr] Checking filetime v0.2.17 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking xattr v0.2.3 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking arc-swap v1.5.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking tar v0.4.38 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking base16ct v0.1.1 [INFO] [stderr] Checking ar v0.9.0 [INFO] [stderr] Checking snafu v0.7.1 [INFO] [stderr] Checking octocrab v0.16.0 [INFO] [stderr] Checking spdx-rs v0.5.1 [INFO] [stderr] Checking clap v3.2.11 [INFO] [stderr] Checking bzip2 v0.4.3 [INFO] [stderr] Checking git2 v0.14.4 [INFO] [stderr] Checking zstd v0.10.2+zstd.1.5.2 [INFO] [stderr] Checking zip v0.6.2 [INFO] [stderr] Checking sbom-ghr v0.1.0-SNAPSHOT (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/packages/git.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/packages/git.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/packages/file_system.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | mut self, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/packages/git.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let builder = RepoBuilder::new() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/packages/git.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | mut self, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/packages/file_system.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | mut self, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/packages/git.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let builder = RepoBuilder::new() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/packages/git.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | mut self, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_name_from_url` is never used [INFO] [stdout] --> src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn file_name_from_url(url: &Url) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply_to_file_info` is never used [INFO] [stdout] --> src/analyzers.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl SpdxFileAnalyzeSuccess { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 67 | pub fn apply_to_file_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `append_ignore` is never used [INFO] [stdout] --> src/packages/file_system.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl PathPackage { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn append_ignore(&mut self, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_name_from_url` is never used [INFO] [stdout] --> src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn file_name_from_url(url: &Url) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply_to_file_info` is never used [INFO] [stdout] --> src/analyzers.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl SpdxFileAnalyzeSuccess { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 67 | pub fn apply_to_file_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 40.16s [INFO] running `Command { std: "docker" "inspect" "b70324ee512f9fd1bef5ea450535e26102d0785a6e1cfa66f4ececafb7ac43ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b70324ee512f9fd1bef5ea450535e26102d0785a6e1cfa66f4ececafb7ac43ce", kill_on_drop: false }` [INFO] [stdout] b70324ee512f9fd1bef5ea450535e26102d0785a6e1cfa66f4ececafb7ac43ce