-
-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
formats.libconfig: fix unstable store path dependency in test #264581
Conversation
689e2e4
to
849b643
Compare
So sorry about this 😥 |
Previously, this test would verify a writeText file with a constant content is at a precise store path, but this is not actually the case and the store path has changed maybe twice since the original "pkgs.formats: Add libconfig format generator" PR was started, the latest time being after it was merged. We now placehold the store path in expected.txt and substitute it just before we run the diff, alleviating the problem.
849b643
to
faf4e7b
Compare
So, it turns out the original PR was just missing an Still, a FOD in a test is a bit scary since it gets cached in the Nix store and keyed by the |
@infinisil done, split into #264638 :) |
I only verified that the test builds for me, so that channels get unblocked. It sounds like some of you did actually check that the tests really do what they're meant to do. |
Mhm. We trade off a bit of coverage for not getting another problem with this bit of the test. |
Description of changes
Previously, this test would verify a writeText file with a constant content is at a precise store path, but this is not actually the case and the store path has changed maybe twice since the original PR was started (#246115), the latest time being after it was merged.
We now placehold the store path in expected.txt and substitute it just before we run the diff, alleviating the problem.
Fixes #246115 (comment), a
nixpkgs-unstable
regression.cc @vcunat @h7x4
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)