NixOS/nix

--keep-going does not keep going on various build failures

Open

#8.321 aberto em 11 de mai. de 2023

Ver no GitHub
 (4 comments) (4 reactions) (0 assignees)C++ (1.293 forks)batch import
buggood first issueidea approvedscheduling

Métricas do repositório

Stars
 (9.803 stars)
Métricas de merge de PR
 (Mesclagem média 7d 11h) (83 fundiu PRs em 30d)

Description

Describe the bug

$ nix build --keep-going /some/derivation.drv^*

building '/nix/store/gqamai5zimfxj8pn32cnzx3bs1mm9bqb-libXft-riscv64-unknown-linux-gnu-2.3.6.drv'...
building '/nix/store/jqs5k02g5iy4gwxlndlvicn67zr6wrf4-libXi-riscv64-unknown-linux-gnu-1.8.drv'...
building '/nix/store/xj3h7rnfrkif27qszzr7c8bgvvikiaqd-libluv-riscv64-unknown-linux-gnu-1.44.2-1.drv'...
building '/nix/store/v8pm72cc8289bndl4l1bc5zfk855i0iv-libusb-riscv64-unknown-linux-gnu-1.0.26.drv'...
building '/nix/store/q4p13sfydrjsrslsdgvkff62n5xkgrf6-aspell-riscv64-unknown-linux-gnu-0.60.8.drv'...
error: a 'riscv64-linux' with features {} is required to build '/nix/store/03w7yyb2cqw3blz9biawkypig49lx2fc-bootstrap-tools.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, recursive-nix}
Nothing to push.

I know there are more riscv64 paths that can cross-compile, or were in progress compiling, but they just get killed.

Steps To Reproduce

  1. Try to build a bunch of derivations, one of which requires a "different" system, other than a supported one, to trigger this error

Expected behavior

The builds keep going until it gets to the terminal tree of derivations that can't build.

(and/or it tells me what it thinks it needs bootstrap-tools for... since most of the generation is cross-compiling fine)

nix-env --version output

╭ zeph  ~/code/nixcfg 248.81s ✘1
╰─▶ nix-env --version
nix-env (Nix) 2.15.0

Additional context

Add any other context about the problem here.

Priorities

Add :+1: to issues you find important.

Guia do colaborador