0.4.0
released!
@Shivaraj B H ^ another candidate for upstreaming to nixpkgs, if you would like to contribute a PR.
https://github.com/NixOS/nixpkgs/pull/305222
Did you test the latest version with the command as follows?
nixci build github:hercules-ci/hercules-ci-agent β
βπ github:hercules-ci/hercules-ci-agent β
βπ nix --extra-experimental-features 'nix-command flakes' show-config --json β
βπ nix eval 'github:hercules-ci/hercules-ci-agent#nixci.default' --json β
βπ nix eval --impure --json --expr 'builtins.getFlake "github:nix-systems/empty"' β
βπ nix eval --impure --json --expr 'import /nix/store/j0r8d7rdn4vrisl78v8ckl4hny4q9ipi-source' β
βπ nix show-config --json β
βπ default.<root> β
βπ nix flake lock --no-update-lock-file github:hercules-ci/hercules-ci-agent β
βπ nix build '/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source#default' -L --no-link --print-out-paths --override-inpuβ
βt flake github:hercules-ci/hercules-ci-agent --override-input systems github:nix-systems/empty --refresh -j auto β
ββ’ Updated input 'systems': β
β 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLUβ
β309k9mBC768%3D' (2023-04-09) β
β β 'github:nix-systems/empty/23d743284b73ae69caf0cb7874edf05c0c631a1f?narHash=sha256-JeMK8G1oabQTSpqXhYaYtPRak4m6z1xxyRβ
βKf8CvHy14%3D' (2024-02-23) β
βerror: flake 'path:/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source' does not provide attribute 'packages.aarch64-darwβ
βin.default', 'legacyPackages.aarch64-darwin.default' or 'default' β
βError: devour-flake failed to run (exited: 1)
@GuangTao Zhang How did you install nixci?
I'm unable to reproduce your error using nix run github:srid/nixci build github:hercules-ci/hercules-ci-agent
on NixOS.
Ah, maybe the nixpkgs one is broken. Let me try ...
Nope, still can't reproduce it.
But, @Shivaraj B H, you want to update nixpkgs to use the same devour-flake rev, since it contains some fixes (like for building nixosConfigurations).
https://github.com/srid/nixci/blob/b247e765843762f708861ec2309ae8ca75c1de25/flake.lock#L40-L49
May as well use this opportunity to add a comment next to the version
field reminding contributors to update devour-flake
when upgrading nixci.
Srid said:
I'm unable to reproduce your error using
nix run github:srid/nixci build github:hercules-ci/hercules-ci-agent
on NixOS.
From the latest nixpkgs-unstable.Yeah, I can't reproduce the issue with the command you provided as well. It seems the problem appeared in the the upstream of nixpkgs (version 0.4.0)
@Shivaraj B H Another idea: add some regression tests for nixci in nixpkgs itself. Not sure what that looks like, but I'm sure some packages must have tests. We only need to run nixci build
on some known repos. But this can happen on separate PR.
Last updated: Nov 15 2024 at 13:04 UTC