nix-bitcoin icon indicating copy to clipboard operation
nix-bitcoin copied to clipboard

tests: Reenable `flake-info`

Open erikarvstedt opened this issue 3 years ago • 1 comments

erikarvstedt avatar Sep 23 '22 07:09 erikarvstedt

The git checkout step in Cirrus is currently broken. Edit: It now works when manually re-running failed tests.

erikarvstedt avatar Sep 23 '22 10:09 erikarvstedt

@jonasnick, the bwrap env exposed the host's /etc/nix/nix.conf to the flake-info process. In your case, nix.conf probably contained the default value of flake-registry, which is https://channels.nixos.org/flake-registry.json. This file was then fetched by the underlying call to nix, which caused the connection failure.

Does the latest force-push fix this for you?

By the way, it makes sense to disable the global flake-registry, like so:

nix.settings.flake-registry = "/dev/null";

Otherwise, the remote registry is updated every hour (default value of nix setting tarball-ttl) when using the nix CLI, which adds a considerable, annoying delay. (IMO this is a design error, I've been planning to further investigate this and report it upstream.) After disabling the global registry, you can still setup your own registry via files /etc/nix/registry.json or ~/.config/nix/registry.json. Here's a reasonable default.

erikarvstedt avatar Oct 25 '22 20:10 erikarvstedt