[INFO] updating cached repository https://github.com/iamsauravsharma/cargo-cleaner [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] [stderr] From https://github.com/iamsauravsharma/cargo-cleaner [INFO] [stderr] 982b2c9..f87f342 master -> master [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f87f342f2746943c54de011d8136531d46330076 [INFO] testing iamsauravsharma/cargo-cleaner against 1.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamsauravsharma%2Fcargo-cleaner" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iamsauravsharma/cargo-cleaner on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iamsauravsharma/cargo-cleaner [INFO] finished tweaking git repo https://github.com/iamsauravsharma/cargo-cleaner [INFO] tweaked toml for git repo https://github.com/iamsauravsharma/cargo-cleaner written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/iamsauravsharma/cargo-cleaner already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc9f10d00d9b7eaef2fe7c190c727fdb968b358343e57769c02d1ae23375bae8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cc9f10d00d9b7eaef2fe7c190c727fdb968b358343e57769c02d1ae23375bae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc9f10d00d9b7eaef2fe7c190c727fdb968b358343e57769c02d1ae23375bae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc9f10d00d9b7eaef2fe7c190c727fdb968b358343e57769c02d1ae23375bae8", kill_on_drop: false }` [INFO] [stdout] cc9f10d00d9b7eaef2fe7c190c727fdb968b358343e57769c02d1ae23375bae8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1aa1d2a65d3f73b4bc462c75a4dbc5838c3979491191e78e1128d8ab02e8edd1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1aa1d2a65d3f73b4bc462c75a4dbc5838c3979491191e78e1128d8ab02e8edd1", kill_on_drop: false }` [INFO] [stderr] Compiling semver v0.10.0 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling dirs v3.0.1 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Compiling cargo-trim v0.6.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.71s [INFO] running `Command { std: "docker" "inspect" "1aa1d2a65d3f73b4bc462c75a4dbc5838c3979491191e78e1128d8ab02e8edd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1aa1d2a65d3f73b4bc462c75a4dbc5838c3979491191e78e1128d8ab02e8edd1", kill_on_drop: false }` [INFO] [stdout] 1aa1d2a65d3f73b4bc462c75a4dbc5838c3979491191e78e1128d8ab02e8edd1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2075ab8c73d2ab9911196ee6022287afdc24009009abca1f02c274bda0623b8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e2075ab8c73d2ab9911196ee6022287afdc24009009abca1f02c274bda0623b8", kill_on_drop: false }` [INFO] [stderr] Compiling cargo-trim v0.6.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.01s [INFO] running `Command { std: "docker" "inspect" "e2075ab8c73d2ab9911196ee6022287afdc24009009abca1f02c274bda0623b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2075ab8c73d2ab9911196ee6022287afdc24009009abca1f02c274bda0623b8", kill_on_drop: false }` [INFO] [stdout] e2075ab8c73d2ab9911196ee6022287afdc24009009abca1f02c274bda0623b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 242ca89f8554362396e8fa7c62f92d9b2fcf5fd0853fbe7045563fb6765fb48c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "242ca89f8554362396e8fa7c62f92d9b2fcf5fd0853fbe7045563fb6765fb48c", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/cargo_trim-63e7eb7996e78023 [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/command_output-b29c52ac932acd4b [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stderr] Blocking waiting for file lock on build directory [INFO] [stderr] Blocking waiting for file lock on build directory [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running `/opt/rustwide/target/debug/cargo-trim trim help git` [INFO] [stderr] Blocking waiting for file lock on build directory [INFO] [stdout] cargo-trim-git 0.6.1 [INFO] [stdout] Perform operation only to git related cache file [INFO] [stdout] [INFO] [stdout] USAGE: [INFO] [stdout] cargo trim git [FLAGS] [OPTIONS] [INFO] [stdout] [INFO] [stdout] FLAGS: [INFO] [stdout] -a, --all Clean up all .cargo/git follow config file data [INFO] [stdout] -n, --dry-run Run command in dry run mode to see what would be removed [INFO] [stdout] -h, --help Prints help information [INFO] [stdout] -l, --light Light cleanup repos by removing git checkout but stores git db for future compilation [INFO] [stdout] -o, --old-clean Clean old cache crates [INFO] [stdout] -z, --old-orphan-clean Clean crates which is both old and orphan [INFO] [stdout] -x, --orphan-clean Clean orphan cache crates i.e all crates which are not present in lock file generated till [INFO] [stdout] now use cargo trim -u to guarantee your all project generate lock file [INFO] [stdout] -q, --query Return size of different .cargo/git cache folders [INFO] [stdout] -V, --version Prints version information [INFO] [stdout] [INFO] [stdout] OPTIONS: [INFO] [stdout] -r, --remove Remove provided crates from registry or git [INFO] [stdout] -t, --top Show certain number of top git crates which have highest size [INFO] [stdout] test test_git_help ... ok [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.43s [INFO] [stderr] Running `/opt/rustwide/target/debug/cargo-trim trim help remove` [INFO] [stdout] cargo-trim-remove 0.6.1 [INFO] [stdout] Remove values from config file [INFO] [stdout] [INFO] [stdout] USAGE: [INFO] [stdout] cargo trim remove [FLAGS] [OPTIONS] [INFO] [stdout] [INFO] [stdout] FLAGS: [INFO] [stdout] -n, --dry-run Run command in dry run mode to see what would be removed [INFO] [stdout] -h, --help Prints help information [INFO] [stdout] -V, --version Prints version information [INFO] [stdout] [INFO] [stdout] OPTIONS: [INFO] [stdout] -d, --directory Directory to be removed [INFO] [stdout] -e, --exclude Remove crate from exclude [INFO] [stdout] -i, --include Remove crate from include [INFO] [stdout] test test_remove_help ... ok [INFO] [stderr] Blocking waiting for file lock on build directory [INFO] [stderr] Blocking waiting for file lock on build directory [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.55s [INFO] [stderr] Running `/opt/rustwide/target/debug/cargo-trim trim help` [INFO] [stdout] cargo-trim 0.6.1 [INFO] [stdout] Saurav Sharma [INFO] [stdout] Binary application to cleanup $CARGO_HOME cache [INFO] [stdout] [INFO] [stdout] USAGE: [INFO] [stdout] cargo trim [FLAGS] [OPTIONS] [SUBCOMMAND] [INFO] [stdout] [INFO] [stdout] FLAGS: [INFO] [stdout] -a, --all Clean up all .cargo/registry & .cargo/git follow config file data [INFO] [stdout] -n, --dry-run Run command in dry run mode to see what would be removed [INFO] [stdout] -h, --help Prints help information [INFO] [stdout] -l, --light Light cleanup repos by removing git checkout and registry source but stores git db and [INFO] [stdout] registry archive for future compilation without internet requirement [INFO] [stdout] -o, --old-clean Clean old cache crates [INFO] [stdout] -z, --old-orphan-clean Clean crates which is both old and orphan [INFO] [stdout] -x, --orphan-clean Clean orphan cache crates i.e all crates which are not present in lock file generated till [INFO] [stdout] now use cargo trim -u to guarantee your all project generate lock file [INFO] [stdout] -q, --query Return size of different .cargo/cache folders [INFO] [stdout] -u, --update Generate and Update Cargo.lock file present inside config directory folder path [INFO] [stdout] -V, --version Prints version information [INFO] [stdout] [INFO] [stdout] OPTIONS: [INFO] [stdout] -e, --exclude Add listed crates to default conf file exclude list [use TRIM_EXCLUDE [INFO] [stdout] environment variable for creating exclude list without editing conf file] [INFO] [stdout] -g, --gc Git compress to reduce size of .cargo [possible values: all, index, git, git- [INFO] [stdout] checkout, git-db] [INFO] [stdout] -f, --ignore-file-name Add file name/directory name to ignore list in conf file while scanning for [INFO] [stdout] Cargo.toml within given rust project directory [INFO] [stdout] -i, --include Add listed crates to default conf file include list [use TRIM_INCLUDE [INFO] [stdout] environment variable for creating include list without editing conf file] [INFO] [stdout] -r, --remove Remove provided crates from registry or git [INFO] [stdout] -d, --directory Set directory of Rust project [use TRIM_DIRECTORY environment variable for [INFO] [stdout] creating directory list without editing conf file] [INFO] [stdout] -t, --top Show certain number of top crates which have highest size [INFO] [stdout] -w, --wipe Wipe folder [possible values: git, checkouts, db, registry, cache, index, [INFO] [stdout] index-cache, src] [INFO] [stdout] [INFO] [stdout] SUBCOMMANDS: [INFO] [stdout] clear Clear current working directory from cargo cache config [INFO] [stdout] config Query config file data [INFO] [stdout] git Perform operation only to git related cache file [INFO] [stdout] help Prints this message or the help of the given subcommand(s) [INFO] [stdout] init Initialize current working directory as cargo trim directory [INFO] [stdout] list List out crates [INFO] [stdout] registry Perform operation only to registry related cache file [INFO] [stdout] remove Remove values from config file [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.51s [INFO] [stderr] Running `/opt/rustwide/target/debug/cargo-trim trim help list` [INFO] [stdout] cargo-trim-list 0.6.1 [INFO] [stdout] List out crates [INFO] [stdout] [INFO] [stdout] USAGE: [INFO] [stdout] cargo trim list [FLAGS] [INFO] [stdout] [INFO] [stdout] FLAGS: [INFO] [stdout] -a, --all list out all installed crate [INFO] [stdout] -h, --help Prints help information [INFO] [stdout] -o, --old List out old crates [INFO] [stdout] -z, --old-orphan List out crates which is both old and orphan [INFO] [stdout] -x, --orphan List out orphan crates [INFO] [stdout] -u, --use List out used crates [INFO] [stdout] -V, --version Prints version information [INFO] [stdout] test test_list_help ... ok [INFO] [stdout] test test_help ... ok [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.51s [INFO] [stderr] Running `/opt/rustwide/target/debug/cargo-trim trim help registry` [INFO] [stdout] cargo-trim-registry 0.6.1 [INFO] [stdout] Perform operation only to registry related cache file [INFO] [stdout] [INFO] [stdout] USAGE: [INFO] [stdout] cargo trim registry [FLAGS] [OPTIONS] [INFO] [stdout] [INFO] [stdout] FLAGS: [INFO] [stdout] -a, --all Clean up all .cargo/registry follow config file data [INFO] [stdout] -n, --dry-run Run command in dry run mode to see what would be removed [INFO] [stdout] -h, --help Prints help information [INFO] [stdout] -l, --light Light cleanup repos by removing registry source but stores registry archive for future [INFO] [stdout] compilation [INFO] [stdout] -o, --old-clean Clean old cache crates [INFO] [stdout] -z, --old-orphan-clean Clean crates which is both old and orphan [INFO] [stdout] -x, --orphan-clean Clean orphan cache crates i.e all crates which are not present in lock file generated till [INFO] [stdout] now use cargo trim -u to guarantee your all project generate lock file [INFO] [stdout] -q, --query Return size of different .cargo/registry cache folders [INFO] [stdout] -V, --version Prints version information [INFO] [stdout] [INFO] [stdout] OPTIONS: [INFO] [stdout] -r, --remove Remove provided crates from registry or git [INFO] [stdout] -t, --top Show certain number of top registry crates which have highest size [INFO] [stdout] test test_registry_help ... ok [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.75s [INFO] [stderr] Running `/opt/rustwide/target/debug/cargo-trim trim help config` [INFO] [stdout] cargo-trim-config 0.6.1 [INFO] [stdout] Query config file data [INFO] [stdout] [INFO] [stdout] USAGE: [INFO] [stdout] cargo trim config [FLAGS] [INFO] [stdout] [INFO] [stdout] FLAGS: [INFO] [stdout] -d, --directory Query about directory data [INFO] [stdout] -e, --exclude Query about exclude data [INFO] [stdout] -h, --help Prints help information [INFO] [stdout] -f, --ignore-file-name Query about ignored file name data [INFO] [stdout] -i, --include Query about include data [INFO] [stdout] -l, --location Return config file location [INFO] [stdout] -p, --print Print/Display config file content [INFO] [stdout] -V, --version Prints version information [INFO] [stdout] test test_config_help ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "242ca89f8554362396e8fa7c62f92d9b2fcf5fd0853fbe7045563fb6765fb48c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "242ca89f8554362396e8fa7c62f92d9b2fcf5fd0853fbe7045563fb6765fb48c", kill_on_drop: false }` [INFO] [stdout] 242ca89f8554362396e8fa7c62f92d9b2fcf5fd0853fbe7045563fb6765fb48c