All Rust apps built with Nixpacks face issues

a year ago

An error occurred while creating the build environment for Nixpacks. All my Rust projects are unavailable.

 > [stage-0  5/10] RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d:
0.351 unpacking 'https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz' into the Git cache...
13.60 unpacking 'https://github.com/oxalica/rust-overlay/archive/master.tar.gz' into the Git cache...
15.76 installing '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'
15.85 error:
15.85        … while calling the 'derivationStrict' builtin
15.85          at :34:12:
15.85            33|
15.85            34|   strict = derivationStrict drvAttrs;
15.85              |            ^
15.85            35|
15.85 
15.85        … while evaluating derivation '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'
15.85          whose name attribute is located at /nix/store/lgcjj6s23v2203zyihsd0j26wh1saj0c-source/pkgs/stdenv/generic/make-derivation.nix:300:7
15.85 
15.85        … while evaluating attribute 'passAsFile' of derivation '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'
15.85          at /nix/store/lgcjj6s23v2203zyihsd0j26wh1saj0c-source/pkgs/build-support/trivial-builders/default.nix:88:7:
15.85            87|       inherit buildCommand name;
15.85            88|       passAsFile = [ "buildCommand" ]
15.85              |       ^
15.85            89|         ++ (derivationArgs.passAsFile or []);
15.85 
15.85        (stack trace truncated; use '--show-trace' to show the full, detailed trace)
15.85 
15.85        error: attribute 'rust' missing
15.85        at /nix/store/x0b87ac1wjr0z9dprzi2zmwn96v4zyqn-source/lib/rust-bin.nix:25:28:
15.85            24|
15.85            25|   toRustTarget = platform: platform.rust.rustcTarget;
15.85              |                            ^
15.85            26|
15.85        Did you mean rustc?
------
Dockerfile:8
--------------------
   6 |     COPY rust-toolchain.toml /app/rust-toolchain.toml
   7 |     COPY .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix
   8 | >>> RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d
   9 |     
  10 |     
--------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1
Error: Docker build failed

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

5 Replies

souzarodrigo61
HOBBY

a year ago

same erro in my project


Thanks for the report. I've raised this internally to our build engineers, will toss an update in here once I hear back!


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to In Progress ray-chen about 1 year ago


Update, we are going to overhaul our Rust provider. In the meantime, are Rust builds back working for you all?


Status changed to Awaiting Railway Response angelo-railway about 1 year ago


angelo-railway

Update, we are going to overhaul our Rust provider. In the meantime, are Rust builds back working for you all?

a year ago

In my deployment it's ok.


Marking as solved then.


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved angelo-railway about 1 year ago


Loading...