noBrokenSymlinks: check for unreadable symlinks#380683
noBrokenSymlinks: check for unreadable symlinks#380683ConnorBaker merged 8 commits intoNixOS:stagingfrom
Conversation
|
I haven't tested this locally yet because it wants to Rebuild The Everything (well, it is a stdenv change) and I don't have that much free space. |
wolfgangwalther
left a comment
There was a problem hiding this comment.
Please add a test for this in pkgs/test/stdenv/no-broken-symlinks.nix and target staging.
5fd24fd to
42b0ac3
Compare
|
Hang on, that was the wrong branch, and now I've messed something up on my local repo. (I don't do rebases often enough.) Give me a sec, I'll fix it… |
42b0ac3 to
76a3e75
Compare
98838cc to
32617d7
Compare
For consistency with the outer `tests.stdenv.hooks` attrset.
32617d7 to
0f17943
Compare
|
Working on running the tests for this latest version now, but I think I've finally got it ready at this point…? Edit: Thought it had failed again, but it's just the Cachix push step choking on the (intentionally) broken symlinks. I think the hook tests themselves are working now! |
|
Wonderful! I was able to verify it works on Thank you so much for taking this on! |
…m.isStatic Since NixOS#380683, broken symlinks prevent the package from building on pkgsStatic.pkgsLLVM. So far as I know, isStatic builds don't have shared objects, so don't emit these broken symlinks for them. Signed-off-by: Peter Waller <p@pwaller.net>
Resolves #380681.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.