NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.41k stars 14.36k forks source link

Build failure: prisma-engines #348732

Closed hehongbo closed 1 month ago

hehongbo commented 1 month ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build prisma-engines in x86_64-linux

Build log

prisma-engines> Running phase: unpackPhase
prisma-engines> unpacking source archive /nix/store/9xzm1y1fjar1ary7jqqsqkysj34asnl3-source
prisma-engines> source root is source
prisma-engines> Executing cargoSetupPostUnpackHook
prisma-engines> Finished cargoSetupPostUnpackHook
prisma-engines> Running phase: patchPhase
prisma-engines> Executing cargoSetupPostPatchHook
prisma-engines> Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
prisma-engines> Finished cargoSetupPostPatchHook
prisma-engines> Running phase: updateAutotoolsGnuConfigScriptsPhase
prisma-engines> Running phase: configurePhase
prisma-engines> Running phase: buildPhase
prisma-engines> Executing cargoBuildHook
prisma-engines> cargoBuildHook flags: -j 48 --target x86_64-unknown-linux-gnu --offline --profile release -p query-engine -p query-engine-node-api -p schema-engine-cli -p prisma-fmt
prisma-engines>    Compiling libc v0.2.151
prisma-engines>    Compiling proc-macro2 v1.0.78
prisma-engines>    Compiling unicode-ident v1.0.11
prisma-engines>    Compiling cfg-if v1.0.0
prisma-engines>    Compiling autocfg v1.1.0

(...)

prisma-engines>    Compiling user-facing-errors v0.1.0 (/build/source/libs/user-facing-errors)
prisma-engines>    Compiling sql-schema-describer v0.1.0 (/build/source/schema-engine/sql-schema-describer)
prisma-engines>    Compiling driver-adapters v0.1.0 (/build/source/query-engine/driver-adapters)
prisma-engines> error: struct `MigrationRollback` is never constructed
prisma-engines>   --> libs/user-facing-errors/src/schema_engine.rs:27:8
prisma-engines>    |
prisma-engines> 27 | struct MigrationRollback {
prisma-engines>    |        ^^^^^^^^^^^^^^^^^
prisma-engines>    |
prisma-engines> note: the lint level is defined here
prisma-engines>   --> libs/user-facing-errors/src/lib.rs:1:22
prisma-engines>    |
prisma-engines> 1  | #![deny(unsafe_code, warnings, rust_2018_idioms)]
prisma-engines>    |                      ^^^^^^^^
prisma-engines>    = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
prisma-engines> error: could not compile `user-facing-errors` (lib) due to 1 previous error
prisma-engines> warning: build failed, waiting for other jobs to finish...
error: builder for '/nix/store/f4jsaknmwfq6x29gj0dfd67kqfhqvnm6-prisma-engines-5.18.0.drv' failed with exit code 101

Additional context

I'm building with current master e032e7e though the builder is 24.05.

Notify maintainers

@pimeys @tomhoule @ivan @aqrln

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.54, NixOS, 24.05 (Uakari), 24.05.5480.6e6b3dd395c3`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

aqrln commented 1 month ago

I'll take a look today, thanks! I'm going to be updating it to a new version anyway.

aqrln commented 1 month ago

https://github.com/NixOS/nixpkgs/pull/348844