Nix build fails at `remote-import` test
See original GitHub issueThanks for this project!
On current main
(ce01be3), I’m seeing that nix build
fails while running the tasty test suite. Looking at the logs, the failure appears to be
remote-import-input - error: FAIL
Missing golden value.
(expected behavior: pass, or possibly skip this test when building with Nix?)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Test failure when using a custom store location · Issue #5562
Describe the bug I have successfully bootstrapped nix using ~/.nix/{store,var,etc}, and can install additional packages to complete.
Read more >Nixpkgs 22.11 manual
Nix expressions describe how to build packages from source and are collected in the nixpkgs repository. Also included in the collection are Nix...
Read more >`nix-build` fails because Python wants something that's ...
The error. When I run nix-build -A serialosc from the root of nixpkgs, nix prints the following: [jeff@jbb ...
Read more >How do I diagnose a failing nix-build?
I'd expect to find some logs / errors of why it failed to build? Following from https://stackoverflow.com/a/47264375/1663462: I've tried adding ...
Read more >Unit Test Your Nix Code
Cleanly and seamlessly add unit tests to your nix functions. ... the list will be populated with information telling you which test failed....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Alright, this should be fixed now. I ended up going with changing the default build target to not build tests
I’m assuming the issue is that the failing tests require network access, but this is not allowed in a sandboxed build, which I think is the default on NixOS.
I looked around a bit for a workaround (found, e.g. this and this). The two workarounds I’ve come up with are
nix build --option sandbox false
)graceNoTests
attribute insteadWondering if it’d make sense to add a note to the readme about disabling sandboxing, or potentially change the default build target to
graceNoTests
? I’d be happy to PR this.