Closed
Description
I tried running the simple example, however I get error messages.
Most likely I'm missing something basic, though I figure you'd like the project to be accessible to newcomers.
Can anyone offer advice on this behaviour? I've added the terminal output below. The two key errors seem to be
error: opening file '/home/arnt/hello-deploy-rs/default.nix': No such file or directory
error: attribute 'deploy' missing
[arnt@nixos-2:~/hello-deploy-rs]$ curl https://raw.githubusercontent.com/serokell/deploy-rs/refs/heads/master/examples/simple/flake.nix -o ./flake.nix
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 599 100 599 0 0 2294 0 --:--:-- --:--:-- --:--:-- 2286
[arnt@nixos-2:~/hello-deploy-rs]$
[arnt@nixos-2:~/hello-deploy-rs]$
[arnt@nixos-2:~/hello-deploy-rs]$ nix --extra-experimental-features 'nix-command flakes' run github:serokell/deploy-rs -- .
🚀 ⚠️ [deploy] [WARN] A Nix version without flakes support was detected, support for this is work in progress
🚀 ℹ️ [deploy] [INFO] Running checks for flake in .
error:
… while evaluating a branch condition
at «string»:1:75:
1| let r = import ./.; x = (if builtins.isFunction r then (r {}) else r); in if x ? checks then x.checks.${builtins.currentSystem} else {}
| ^
… while evaluating a branch condition
at «string»:1:26:
1| let r = import ./.; x = (if builtins.isFunction r then (r {}) else r); in if x ? checks then x.checks.${builtins.currentSystem} else {}
| ^
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: opening file '/home/arnt/hello-deploy-rs/default.nix': No such file or directory
🚀 ❌ [deploy] [ERROR] Failed to check deployment: Nix checking command resulted in a bad exit code: Some(1)
[arnt@nixos-2:~/hello-deploy-rs]$
[arnt@nixos-2:~/hello-deploy-rs]$
[arnt@nixos-2:~/hello-deploy-rs]$
[arnt@nixos-2:~/hello-deploy-rs]$
[arnt@nixos-2:~/hello-deploy-rs]$ nix --extra-experimental-features 'nix-command flakes' run github:serokell/deploy-rs -- flake.nix
🚀 ⚠️ [deploy] [WARN] A Nix version without flakes support was detected, support for this is work in progress
🚀 ℹ️ [deploy] [INFO] Running checks for flake in flake.nix
🚀 ℹ️ [deploy] [INFO] Evaluating flake in flake.nix
error: attribute 'deploy' missing
at «string»:1:81:
1| let r = import flake.nix/.; in if builtins.isFunction r then (r {}).deploy else r.deploy
| ^
🚀 ❌ [deploy] [ERROR] Failed to evaluate deployment data: Evaluation resulted in a bad exit code: Some(1)
[arnt@nixos-2:~/hello-deploy-rs]$
Metadata
Metadata
Assignees
Labels
No labels