[INFO] cloning repository https://github.com/trybefore/file_host [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trybefore/file_host" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrybefore%2Ffile_host", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrybefore%2Ffile_host'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e245790ec73e79c6f08e49ba3a47abcc3a98c516 [INFO] checking trybefore/file_host against master#5431404b87967c69438ea1e698edbe96505f0798 for pr-119849 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrybefore%2Ffile_host" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trybefore/file_host on toolchain 5431404b87967c69438ea1e698edbe96505f0798 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5431404b87967c69438ea1e698edbe96505f0798" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trybefore/file_host [INFO] finished tweaking git repo https://github.com/trybefore/file_host [INFO] tweaked toml for git repo https://github.com/trybefore/file_host written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/trybefore/file_host 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" "+5431404b87967c69438ea1e698edbe96505f0798" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking trybefore/file_host against try#21bc403d557a2516df70ea80fb19b94177beede5 for pr-119849 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrybefore%2Ffile_host" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trybefore/file_host on toolchain 21bc403d557a2516df70ea80fb19b94177beede5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+21bc403d557a2516df70ea80fb19b94177beede5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trybefore/file_host [INFO] finished tweaking git repo https://github.com/trybefore/file_host [INFO] tweaked toml for git repo https://github.com/trybefore/file_host written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/trybefore/file_host 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" "+21bc403d557a2516df70ea80fb19b94177beede5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/GREsau/okapi` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking trybefore/file_host against try#21bc403d557a2516df70ea80fb19b94177beede5 for pr-119849 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrybefore%2Ffile_host" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trybefore/file_host on toolchain 21bc403d557a2516df70ea80fb19b94177beede5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+21bc403d557a2516df70ea80fb19b94177beede5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trybefore/file_host [INFO] finished tweaking git repo https://github.com/trybefore/file_host [INFO] tweaked toml for git repo https://github.com/trybefore/file_host written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/trybefore/file_host 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" "+21bc403d557a2516df70ea80fb19b94177beede5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-subscriber v0.3.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+21bc403d557a2516df70ea80fb19b94177beede5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 53977a08225e72370eb25dccf930c3803fc1319f54788f2a8768ddd50957a53b [INFO] running `Command { std: "docker" "start" "-a" "53977a08225e72370eb25dccf930c3803fc1319f54788f2a8768ddd50957a53b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53977a08225e72370eb25dccf930c3803fc1319f54788f2a8768ddd50957a53b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53977a08225e72370eb25dccf930c3803fc1319f54788f2a8768ddd50957a53b", kill_on_drop: false }` [INFO] [stdout] 53977a08225e72370eb25dccf930c3803fc1319f54788f2a8768ddd50957a53b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+21bc403d557a2516df70ea80fb19b94177beede5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d4eb7ef968354b41f72ff9274ebb5870ea1f21d2bf958d853b96991557a422c [INFO] running `Command { std: "docker" "start" "-a" "0d4eb7ef968354b41f72ff9274ebb5870ea1f21d2bf958d853b96991557a422c", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.84 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling tokio v1.15.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling futures-sink v0.3.19 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling serde_json v1.0.74 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking futures-io v0.3.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling h2 v0.3.9 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling inlinable_string v0.1.14 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling hyper v0.14.16 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling state v0.5.2 [INFO] [stderr] Compiling darling_core v0.13.1 [INFO] [stderr] Checking tokio-stream v0.1.8 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.1 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling multer v2.0.2 [INFO] [stderr] Compiling figment v0.10.6 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling schemars v0.8.8 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Compiling schemars_derive v0.8.8 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Compiling crc v2.1.0 [INFO] [stderr] Compiling darling_macro v0.13.1 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling sqlx-rt v0.5.10 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Checking futures-executor v0.3.19 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Compiling whoami v1.2.1 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking spin v0.9.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking dyn-clone v1.0.4 [INFO] [stderr] Checking async-stream v0.3.2 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling sqlx-core v0.5.10 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Checking futures v0.3.19 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Checking ubyte v0.10.1 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Compiling blake3 v1.2.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking cfb v0.4.0 [INFO] [stderr] Checking okapi v0.7.0-rc.1 (https://github.com/GREsau/okapi#b21a1184) [INFO] [stderr] Compiling rocket_okapi_codegen v0.8.0-rc.1 (https://github.com/GREsau/okapi#b21a1184) [INFO] [stderr] Compiling file_host v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking infer v0.5.0 [INFO] [stderr] Compiling sqlx-macros v0.5.10 [INFO] [stderr] Checking sqlx v0.5.10 [INFO] [stderr] Checking rocket_okapi v0.8.0-rc.1 (https://github.com/GREsau/okapi#b21a1184) [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/db/models.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | let result = sqlx::query_as!(ApiKey, "SELECT * FROM apikeys WHERE apikey = $1", key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/db/models.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | ... let result= sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 53 | | ... "INSERT INTO files(id, file_name, file_hash, file_type, file_size, uploader, upload_date) VALUES ($1, $2, $3, $4, $5, $6, $7) R... [INFO] [stdout] 54 | | ... self.id, [INFO] [stdout] 55 | | ... self.file_name, [INFO] [stdout] ... | [INFO] [stdout] 60 | | ... self.upload_date, [INFO] [stdout] 61 | | ... ).fetch_one(pool).await?; [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/db/models.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | sqlx::query_as!(File, "SELECT * FROM files WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/db/models.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | let row = sqlx::query!("SELECT id FROM files WHERE file_hash = $1", hash) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/db/models.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | let result = sqlx::query_as!(ApiKey, "SELECT * FROM apikeys WHERE apikey = $1", key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/db/models.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | ... let result= sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 53 | | ... "INSERT INTO files(id, file_name, file_hash, file_type, file_size, uploader, upload_date) VALUES ($1, $2, $3, $4, $5, $6, $7) R... [INFO] [stdout] 54 | | ... self.id, [INFO] [stdout] 55 | | ... self.file_name, [INFO] [stdout] ... | [INFO] [stdout] 60 | | ... self.upload_date, [INFO] [stdout] 61 | | ... ).fetch_one(pool).await?; [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/db/models.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | sqlx::query_as!(File, "SELECT * FROM files WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/db/models.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | let row = sqlx::query!("SELECT id FROM files WHERE file_hash = $1", hash) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `file_host` (bin "file_host") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `file_host` (bin "file_host" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "0d4eb7ef968354b41f72ff9274ebb5870ea1f21d2bf958d853b96991557a422c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d4eb7ef968354b41f72ff9274ebb5870ea1f21d2bf958d853b96991557a422c", kill_on_drop: false }` [INFO] [stdout] 0d4eb7ef968354b41f72ff9274ebb5870ea1f21d2bf958d853b96991557a422c