[INFO] cloning repository https://github.com/amargherio/srvctl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/amargherio/srvctl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famargherio%2Fsrvctl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famargherio%2Fsrvctl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9717fbf5d7fa5841f9699b700e7457359c7275b [INFO] checking amargherio/srvctl against master#1557fb031b272b4c5bfcc7de5df7eddc7b36a584 for pr-73166 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famargherio%2Fsrvctl" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/amargherio/srvctl on toolchain 1557fb031b272b4c5bfcc7de5df7eddc7b36a584 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/amargherio/srvctl [INFO] finished tweaking git repo https://github.com/amargherio/srvctl [INFO] tweaked toml for git repo https://github.com/amargherio/srvctl written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/amargherio/srvctl already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "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-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b0f7c932cff9b6b800492c512a145c0153714d0d01d6131bfca5756309ade7a4 [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" "b0f7c932cff9b6b800492c512a145c0153714d0d01d6131bfca5756309ade7a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b0f7c932cff9b6b800492c512a145c0153714d0d01d6131bfca5756309ade7a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0f7c932cff9b6b800492c512a145c0153714d0d01d6131bfca5756309ade7a4", kill_on_drop: false }` [INFO] [stdout] b0f7c932cff9b6b800492c512a145c0153714d0d01d6131bfca5756309ade7a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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=forbid" "-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" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 76790a556d481223432674c1db05ae71d532cb52640022793e709d2ca6922889 [INFO] running `Command { std: "docker" "start" "-a" "76790a556d481223432674c1db05ae71d532cb52640022793e709d2ca6922889", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.36 [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking arc-swap v0.4.7 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking gimli v0.22.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Compiling encoding_rs v0.8.23 [INFO] [stderr] Checking object v0.20.0 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Compiling k8s-openapi v0.9.0 [INFO] [stderr] Checking data-encoding v2.2.1 [INFO] [stderr] Checking smallvec v1.4.1 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Checking nibble_vec v0.0.4 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Compiling anyhow v1.0.32 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking os_str_bytes v2.3.1 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling standback v0.2.9 [INFO] [stderr] Checking tracing-core v0.1.11 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.12 [INFO] [stderr] Compiling proc-macro-error v0.4.12 [INFO] [stderr] Compiling time v0.2.16 [INFO] [stderr] Compiling hashbrown v0.8.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling indexmap v1.5.0 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking miniz_oxide v0.4.0 [INFO] [stderr] Checking yaml-rust v0.4.4 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking radix_trie v0.1.6 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking tracing v0.1.17 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking flate2 v1.0.16 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking resolv-conf v0.6.3 [INFO] [stderr] Checking dirs v3.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking async-compression v0.3.5 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking ordered-float v2.0.0 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Checking addr2line v0.13.0 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking backtrace v0.3.50 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking pem v0.8.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Compiling enum-as-inner v0.3.2 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.1 [INFO] [stderr] Checking thiserror v1.0.20 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking clap v3.0.0-beta.1 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking serde v1.0.114 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking h2 v0.2.6 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking trust-dns-proto v0.19.5 [INFO] [stderr] Checking trust-dns-resolver v0.19.5 [INFO] [stderr] Checking serde_json v1.0.57 [INFO] [stderr] Checking chrono v0.4.13 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking serde_yaml v0.8.13 [INFO] [stderr] Checking hyper v0.13.7 [INFO] [stderr] Checking trust-dns-client v0.19.5 [INFO] [stderr] Compiling kube-derive v0.38.0 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.7 [INFO] [stderr] Checking kube v0.38.0 [INFO] [stderr] Checking k8s-srvcon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `trust_dns_resolver::config::*` [INFO] [stdout] --> src/dns.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use trust_dns_resolver::config::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::*` [INFO] [stdout] --> src/dns.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trust_dns_resolver::config::*` [INFO] [stdout] --> src/dns.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use trust_dns_resolver::config::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::*` [INFO] [stdout] --> src/dns.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/dns.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let res = resolver.srv_lookup(dn); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/dns.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let res = resolver.srv_lookup(dn); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/bin/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, error, info, trace, warn}; [INFO] [stdout] | ^^^ help: a similar path exists: `trust_dns_resolver::log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::dns` [INFO] [stdout] --> src/bin/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::dns::resolve_srv; [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `k8s_srvcon::dns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/bin/main.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Deserialize, Display)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Display` in this scope [INFO] [stdout] --> src/bin/main.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Deserialize, Display)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/bin/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[serde(alias = "createService")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `info` [INFO] [stdout] --> src/bin/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | info!("Beginning domain resolution for configured domains"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug` [INFO] [stdout] --> src/bin/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | debug!( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug` [INFO] [stdout] --> src/bin/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | debug!("Successfully loaded config file into string."); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `error` [INFO] [stdout] --> src/bin/main.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | error!("Provided config file is empty, unable to continue parsing."); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug` [INFO] [stdout] --> src/bin/main.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | debug!("Config file has extension of 'toml', loading via TOML parser"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug` [INFO] [stdout] --> src/bin/main.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | debug!("Config file has extension of 'yaml', loading via YAML parser"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `error` [INFO] [stdout] --> src/bin/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | error!("Supplied configuration file does not exist, cannot start the controller."); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `toml` [INFO] [stdout] --> src/bin/main.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | loaded_config = toml::from_str(file_contents); [INFO] [stdout] | ^^^^ use of undeclared type or module `toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `serde_yaml` [INFO] [stdout] --> src/bin/main.rs:107:33 [INFO] [stdout] | [INFO] [stdout] 107 | loaded_config = serde_yaml::from_str(&file_contents)?; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type or module `serde_yaml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `matches` [INFO] [stdout] --> src/bin/main.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | match matches.occurences_of("loglevel") { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 40 | match matches!.occurences_of("loglevel") { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stdout] --> src/bin/main.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let fpath = Path::new(&file_path); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `File` [INFO] [stdout] --> src/bin/main.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | let f = File::open(fpath); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `BufReader` [INFO] [stdout] --> src/bin/main.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | let buf = BufReader::new(f); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use futures::io::BufReader; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufReader; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::io::BufReader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `len` in this scope [INFO] [stdout] --> src/bin/main.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | if len(file_contents) == 0 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `loaded_config` in this scope [INFO] [stdout] --> src/bin/main.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | loaded_config = toml::from_str(file_contents); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `loaded_config` in this scope [INFO] [stdout] --> src/bin/main.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | Ok(loaded_config) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `loaded_config` in this scope [INFO] [stdout] --> src/bin/main.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | loaded_config = serde_yaml::from_str(&file_contents)?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `loaded_config` in this scope [INFO] [stdout] --> src/bin/main.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | Ok(loaded_config) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArgMatches`, `Clap` [INFO] [stdout] --> src/bin/main.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::{App, Arg, ArgMatches, Clap}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/bin/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, error, info, trace, warn}; [INFO] [stdout] | ^^^ help: a similar path exists: `trust_dns_resolver::log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::dns` [INFO] [stdout] --> src/bin/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::dns::resolve_srv; [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `k8s_srvcon::dns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/bin/main.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Deserialize, Display)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Display` in this scope [INFO] [stdout] --> src/bin/main.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Deserialize, Display)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/bin/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[serde(alias = "createService")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `info` [INFO] [stdout] --> src/bin/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | info!("Beginning domain resolution for configured domains"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug` [INFO] [stdout] --> src/bin/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | debug!( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug` [INFO] [stdout] --> src/bin/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | debug!("Successfully loaded config file into string."); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `error` [INFO] [stdout] --> src/bin/main.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | error!("Provided config file is empty, unable to continue parsing."); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug` [INFO] [stdout] --> src/bin/main.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | debug!("Config file has extension of 'toml', loading via TOML parser"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug` [INFO] [stdout] --> src/bin/main.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | debug!("Config file has extension of 'yaml', loading via YAML parser"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `error` [INFO] [stdout] --> src/bin/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | error!("Supplied configuration file does not exist, cannot start the controller."); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `toml` [INFO] [stdout] --> src/bin/main.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | loaded_config = toml::from_str(file_contents); [INFO] [stdout] | ^^^^ use of undeclared type or module `toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `serde_yaml` [INFO] [stdout] --> src/bin/main.rs:107:33 [INFO] [stdout] | [INFO] [stdout] 107 | loaded_config = serde_yaml::from_str(&file_contents)?; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type or module `serde_yaml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `matches` [INFO] [stdout] --> src/bin/main.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | match matches.occurences_of("loglevel") { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 40 | match matches!.occurences_of("loglevel") { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stdout] --> src/bin/main.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let fpath = Path::new(&file_path); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `File` [INFO] [stdout] --> src/bin/main.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | let f = File::open(fpath); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `BufReader` [INFO] [stdout] --> src/bin/main.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | let buf = BufReader::new(f); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use futures::io::BufReader; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufReader; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::io::BufReader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `len` in this scope [INFO] [stdout] --> src/bin/main.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | if len(file_contents) == 0 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `loaded_config` in this scope [INFO] [stdout] --> src/bin/main.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | loaded_config = toml::from_str(file_contents); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `loaded_config` in this scope [INFO] [stdout] --> src/bin/main.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | Ok(loaded_config) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `loaded_config` in this scope [INFO] [stdout] --> src/bin/main.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | loaded_config = serde_yaml::from_str(&file_contents)?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `loaded_config` in this scope [INFO] [stdout] --> src/bin/main.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | Ok(loaded_config) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArgMatches`, `Clap` [INFO] [stdout] --> src/bin/main.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::{App, Arg, ArgMatches, Clap}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | .short("v") [INFO] [stdout] | ^^^ expected `char`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | .short("v") [INFO] [stdout] | ^^^ expected `char`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `log` found for struct `clap::build::arg::Arg<'_>` in the current scope [INFO] [stdout] --> src/bin/main.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | .log("loglevel") [INFO] [stdout] | ^^^ help: there is an associated function with a similar name: `long` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `log` found for struct `clap::build::arg::Arg<'_>` in the current scope [INFO] [stdout] --> src/bin/main.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | .log("loglevel") [INFO] [stdout] | ^^^ help: there is an associated function with a similar name: `long` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:55:47 [INFO] [stdout] | [INFO] [stdout] 55 | loaded_config = parse_load_config(&conf)?; [INFO] [stdout] | ^^^^^ expected `str`, found `&std::ffi::OsStr` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&str` [INFO] [stdout] found reference `&&std::ffi::OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: try expression alternatives have incompatible types [INFO] [stdout] --> src/bin/main.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | loaded_config = parse_load_config(&conf)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&ControllerConfig`, found struct `ControllerConfig` [INFO] [stdout] | help: consider borrowing here: `&parse_load_config(&conf)?` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:55:47 [INFO] [stdout] | [INFO] [stdout] 55 | loaded_config = parse_load_config(&conf)?; [INFO] [stdout] | ^^^^^ expected `str`, found `&std::ffi::OsStr` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&str` [INFO] [stdout] found reference `&&std::ffi::OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: try expression alternatives have incompatible types [INFO] [stdout] --> src/bin/main.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | loaded_config = parse_load_config(&conf)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&ControllerConfig`, found struct `ControllerConfig` [INFO] [stdout] | help: consider borrowing here: `&parse_load_config(&conf)?` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 54 | / if let Some(conf) = arg_matches.value_of_os("config") { [INFO] [stdout] 55 | | loaded_config = parse_load_config(&conf)?; [INFO] [stdout] 56 | | } else { [INFO] [stdout] 57 | | Err(anyhow::Error::msg( [INFO] [stdout] | |_____________^ [INFO] [stdout] 58 | || "No configuration file provided, no domains to monitor", [INFO] [stdout] 59 | || )) [INFO] [stdout] | ||______________^ expected `()`, found enum `std::result::Result` [INFO] [stdout] 60 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::Result<_, anyhow::Error>` [INFO] [stdout] help: try adding a semicolon [INFO] [stdout] | [INFO] [stdout] 59 | )); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 60 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `as_str` on type `&std::string::String` [INFO] [stdout] --> src/bin/main.rs:66:39 [INFO] [stdout] | [INFO] [stdout] 66 | let res = resolve_srv(dom.as_str)?; [INFO] [stdout] | ^^^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 66 | let res = resolve_srv(dom.as_str())?; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 54 | / if let Some(conf) = arg_matches.value_of_os("config") { [INFO] [stdout] 55 | | loaded_config = parse_load_config(&conf)?; [INFO] [stdout] 56 | | } else { [INFO] [stdout] 57 | | Err(anyhow::Error::msg( [INFO] [stdout] | |_____________^ [INFO] [stdout] 58 | || "No configuration file provided, no domains to monitor", [INFO] [stdout] 59 | || )) [INFO] [stdout] | ||______________^ expected `()`, found enum `std::result::Result` [INFO] [stdout] 60 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::Result<_, anyhow::Error>` [INFO] [stdout] help: try adding a semicolon [INFO] [stdout] | [INFO] [stdout] 59 | )); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 60 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `as_str` on type `&std::string::String` [INFO] [stdout] --> src/bin/main.rs:66:39 [INFO] [stdout] | [INFO] [stdout] 66 | let res = resolve_srv(dom.as_str)?; [INFO] [stdout] | ^^^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 66 | let res = resolve_srv(dom.as_str())?; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 92 | / if len(file_contents) == 0 { [INFO] [stdout] 93 | | error!("Provided config file is empty, unable to continue parsing."); [INFO] [stdout] 94 | | Err(anyhow::Error::msg( [INFO] [stdout] | |_____________^ [INFO] [stdout] 95 | || "The supplied configuration file is empty", [INFO] [stdout] 96 | || )) [INFO] [stdout] | ||______________^ expected `()`, found enum `std::result::Result` [INFO] [stdout] 97 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::Result<_, anyhow::Error>` [INFO] [stdout] help: try adding a semicolon [INFO] [stdout] | [INFO] [stdout] 96 | )); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 97 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 30 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423, E0425, E0432, E0433, E0599, E0615. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/main.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 92 | / if len(file_contents) == 0 { [INFO] [stdout] 93 | | error!("Provided config file is empty, unable to continue parsing."); [INFO] [stdout] 94 | | Err(anyhow::Error::msg( [INFO] [stdout] | |_____________^ [INFO] [stdout] 95 | || "The supplied configuration file is empty", [INFO] [stdout] 96 | || )) [INFO] [stdout] | ||______________^ expected `()`, found enum `std::result::Result` [INFO] [stdout] 97 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::Result<_, anyhow::Error>` [INFO] [stdout] help: try adding a semicolon [INFO] [stdout] | [INFO] [stdout] 96 | )); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 97 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 30 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423, E0425, E0432, E0433, E0599, E0615. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `k8s-srvcon`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "76790a556d481223432674c1db05ae71d532cb52640022793e709d2ca6922889", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76790a556d481223432674c1db05ae71d532cb52640022793e709d2ca6922889", kill_on_drop: false }` [INFO] [stdout] 76790a556d481223432674c1db05ae71d532cb52640022793e709d2ca6922889