Skip to content

Crashes when using flake-utils.allSystems #94

Closed

Description

@mirosval

I believe the problem was resolved by this commit: mirosval/unbound-blocklist@6b86e1b

I guess I don't need allSystems so I've just downgraded to all default systems since it covers my needs. But I figured you'd like to know if not anything else, then just make a nicer error message

Error

Error: 
   0: Checking flake evaluates
   1: Failed to execute command `nix flake show --all-systems --json --no-write-lock-file /home/runner/work/unbound-blocklist/unbound-blocklist/` with status 1 
      stdout: 
      stderr: 
�[K
�[Kevaluating ''...
      evaluating 'nixosModules'...
      evaluating 'nixosModules.default'...
      evaluating 'packages'...
      evaluating 'packages.aarch64-darwin'...
      evaluating 'packages.aarch64-darwin.default'...
      evaluating 'packages.aarch64-genode'...
      evaluating 'packages.aarch64-genode.default'...
      error:
             … while evaluating a branch condition

               at /nix/store/3wzm6cc90ar7zx4hblqkj6plxnhdviyl-source/pkgs/stdenv/booter.nix:64:9:

                 63|       go = pred: n:
                 64|         if n == len
                   |         ^
                 65|         then rnul pred

             … while calling the 'length' builtin

               at /nix/store/3wzm6cc90ar7zx4hblqkj6plxnhdviyl-source/pkgs/stdenv/booter.nix:62:13:

                 61|     let
                 62|       len = builtins.length list;
                   |             ^
                 63|       go = pred: n:

             (stack trace truncated; use '--show-trace' to show the full trace)

             error: attribute 'sharedLibrary' missing

             at /nix/store/3wzm6cc90ar7zx4hblqkj6plxnhdviyl-source/lib/systems/default.nix:99:39:

                 98|           /**/ if final.isStatic then final.extensions.staticLibrary
                 99|           else                        final.extensions.sharedLibrary;
                   |                                       ^
                100|         executable =


Metadata

key value
version 0.1.0
os linux
arch x86_64

SpanTrace

Details
SpanTrace:
   0: flakehub_push::flake_info::check_flake_evaluates
           with directory=/home/runner/work/unbound-blocklist/unbound-blocklist/
             at src/flake_info.rs:54
   1: flakehub_push::cli::push_new_release
           with repository=mirosval/unbound-blocklist mirror=false upload_name=mirosval/unbound-blocklist
             at src/cli/mod.rs:467
   2: flakehub_push::cli::flakehub_push
             at src/cli/mod.rs:254

Activity

  1. added a commit that references this issue on May 14, 2025
  2. grahamc commented on May 15, 2025

    @grahamc
    Member

    Fundamentally we believe that if you list a system in the outputs, it should evaluate at a minimum -- and ideally build. So I think this is to be expected, since you're probably not intending on supporting the Genode operating system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions