colmena icon indicating copy to clipboard operation
colmena copied to clipboard

Panic when building a nix file with an unexpected type

Open uhthomas opened this issue 3 years ago • 1 comments

Given hive.nix

{ pkgs, ... }: { }

Colmena will panic with

$ colmena build 
[INFO ] Enumerating nodes...
error: value is a function while a set was expected
(use '--show-trace' to show detailed location information)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NixFailure { exit_code: 1 }', src/command/apply.rs:122:50
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

uhthomas avatar May 15 '21 23:05 uhthomas

What's the expected behavior here? e.g. a more detailed explanation over structures?

Colmena currently do support function so I think this indeed a bit confusing

NeverBehave avatar Jun 18 '22 02:06 NeverBehave