[INFO] cloning repository https://github.com/HIUNCY/point-of-sale-api-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HIUNCY/point-of-sale-api-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHIUNCY%2Fpoint-of-sale-api-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHIUNCY%2Fpoint-of-sale-api-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac734cb0346c06b6305ff3437ad8b7a3ed33d263 [INFO] checking HIUNCY/point-of-sale-api-rust against try#e5b0618d996a6a3941e423fd3e170737b8dbdc92 for pr-151822 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHIUNCY%2Fpoint-of-sale-api-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/HIUNCY/point-of-sale-api-rust [INFO] finished tweaking git repo https://github.com/HIUNCY/point-of-sale-api-rust [INFO] tweaked toml for git repo https://github.com/HIUNCY/point-of-sale-api-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/HIUNCY/point-of-sale-api-rust on toolchain e5b0618d996a6a3941e423fd3e170737b8dbdc92 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/HIUNCY/point-of-sale-api-rust 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" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded validator_derive v0.20.0 [INFO] [stderr] Downloaded validator v0.20.0 [INFO] [stderr] Downloaded thiserror v2.0.16 [INFO] [stderr] Downloaded rkyv_derive v0.7.45 [INFO] [stderr] Downloaded erased-serde v0.4.6 [INFO] [stderr] Downloaded config v0.15.15 [INFO] [stderr] Downloaded serde-untagged v0.1.8 [INFO] [stderr] Downloaded rkyv v0.7.45 [INFO] [stderr] Downloaded rust_decimal v1.37.2 [INFO] [stderr] Downloaded wasi v0.14.4+wasi-0.2.4 [INFO] [stderr] Downloaded wit-bindgen v0.45.1 [INFO] [stderr] Downloaded thiserror-impl v2.0.16 [INFO] [stderr] Downloaded rustls v0.23.31 [INFO] [stderr] Downloaded indexmap v2.11.1 [INFO] [stderr] Downloaded bigdecimal v0.4.8 [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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f9da3575f0d88732a02a77e86d7335d5edc44114b6f16362387cd672d4ad29d4 [INFO] running `Command { std: "docker" "start" "-a" "f9da3575f0d88732a02a77e86d7335d5edc44114b6f16362387cd672d4ad29d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9da3575f0d88732a02a77e86d7335d5edc44114b6f16362387cd672d4ad29d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9da3575f0d88732a02a77e86d7335d5edc44114b6f16362387cd672d4ad29d4", kill_on_drop: false }` [INFO] [stdout] f9da3575f0d88732a02a77e86d7335d5edc44114b6f16362387cd672d4ad29d4 [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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d0c34d151cd919fdaafe489caa22de5d0327bf8f01aa7ceddee8dcda608927b [INFO] running `Command { std: "docker" "start" "-a" "4d0c34d151cd919fdaafe489caa22de5d0327bf8f01aa7ceddee8dcda608927b", kill_on_drop: false }` [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling bigdecimal v0.4.8 [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling typeid v1.0.3 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking yaml-rust2 v0.10.3 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Checking rust-ini v0.21.3 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking toml_parser v1.0.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Checking pest v2.8.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_spanned v1.0.0 [INFO] [stderr] Checking erased-serde v0.4.6 [INFO] [stderr] Checking toml_datetime v0.7.0 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking toml v0.9.5 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking serde-untagged v0.1.8 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking config v0.15.15 [INFO] [stderr] Checking validator v0.20.0 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking pos-warung-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | ... let products = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 25 | | ... Product, [INFO] [stdout] 26 | | ... "SELECT id, name, category, price, unit, stock, min_stock, purchase_price, is_active, created_at, updated_at FROM produc... [INFO] [stdout] 27 | | ... ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | let product = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 36 | | Product, [INFO] [stdout] 37 | | r#" [INFO] [stdout] 38 | | INSERT INTO products (name, category, price, unit, stock, min_stock) [INFO] [stdout] ... | [INFO] [stdout] 47 | | &data.min_stock [INFO] [stdout] 48 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | let product = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 57 | | Product, [INFO] [stdout] 58 | | r#" [INFO] [stdout] 59 | | SELECT id, name, category, price, unit, stock, min_stock, purchase_price, is_active, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 63 | | id [INFO] [stdout] 64 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | let updated_product = sqlx::query_as!( [INFO] [stdout] | _______________________________^ [INFO] [stdout] 97 | | Product, [INFO] [stdout] 98 | | r#" [INFO] [stdout] 99 | | UPDATE products [INFO] [stdout] ... | [INFO] [stdout] 110 | | id [INFO] [stdout] 111 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:119:22 [INFO] [stdout] | [INFO] [stdout] 119 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 120 | | "DELETE FROM products WHERE id = $1", [INFO] [stdout] 121 | | id [INFO] [stdout] 122 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 134 | let products = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 135 | | Product, [INFO] [stdout] 136 | | r#" [INFO] [stdout] 137 | | SELECT id, name, category, price, unit, stock, min_stock, purchase_price, is_active, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 141 | | "# [INFO] [stdout] 142 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | ... let products = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 25 | | ... Product, [INFO] [stdout] 26 | | ... "SELECT id, name, category, price, unit, stock, min_stock, purchase_price, is_active, created_at, updated_at FROM produc... [INFO] [stdout] 27 | | ... ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | let product = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 36 | | Product, [INFO] [stdout] 37 | | r#" [INFO] [stdout] 38 | | INSERT INTO products (name, category, price, unit, stock, min_stock) [INFO] [stdout] ... | [INFO] [stdout] 47 | | &data.min_stock [INFO] [stdout] 48 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | let product = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 57 | | Product, [INFO] [stdout] 58 | | r#" [INFO] [stdout] 59 | | SELECT id, name, category, price, unit, stock, min_stock, purchase_price, is_active, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 63 | | id [INFO] [stdout] 64 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | let updated_product = sqlx::query_as!( [INFO] [stdout] | _______________________________^ [INFO] [stdout] 97 | | Product, [INFO] [stdout] 98 | | r#" [INFO] [stdout] 99 | | UPDATE products [INFO] [stdout] ... | [INFO] [stdout] 110 | | id [INFO] [stdout] 111 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:119:22 [INFO] [stdout] | [INFO] [stdout] 119 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 120 | | "DELETE FROM products WHERE id = $1", [INFO] [stdout] 121 | | id [INFO] [stdout] 122 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 134 | let products = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 135 | | Product, [INFO] [stdout] 136 | | r#" [INFO] [stdout] 137 | | SELECT id, name, category, price, unit, stock, min_stock, purchase_price, is_active, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 141 | | "# [INFO] [stdout] 142 | | ) [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[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | if result.rows_affected() == 0 { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 119 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/repositories/postgres/product_repository.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | if result.rows_affected() == 0 { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 119 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pos-warung-api` (bin "pos-warung-api") due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `pos-warung-api` (bin "pos-warung-api" test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "4d0c34d151cd919fdaafe489caa22de5d0327bf8f01aa7ceddee8dcda608927b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d0c34d151cd919fdaafe489caa22de5d0327bf8f01aa7ceddee8dcda608927b", kill_on_drop: false }` [INFO] [stdout] 4d0c34d151cd919fdaafe489caa22de5d0327bf8f01aa7ceddee8dcda608927b