1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

Merge pull request #12819 from NixOS/mergify/bp/2.28-maintenance/pr-12812

Disable packaging-overriding test (backport #12812)
This commit is contained in:
mergify[bot] 2025-03-31 17:44:54 +00:00 committed by GitHub
commit a8749a412f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -230,24 +230,28 @@
This shouldn't build anything significant; just check that things This shouldn't build anything significant; just check that things
(including derivations) are _set up_ correctly. (including derivations) are _set up_ correctly.
*/ */
packaging-overriding = # Disabled due to a bug in `testEqualContents` (see
let # https://github.com/NixOS/nix/issues/12690).
pkgs = nixpkgsFor.${system}.native; /*
nix = self.packages.${system}.nix; packaging-overriding =
in let
assert (nix.appendPatches [ pkgs.emptyFile ]).libs.nix-util.src.patches == [ pkgs.emptyFile ]; pkgs = nixpkgsFor.${system}.native;
if pkgs.stdenv.buildPlatform.isDarwin then nix = self.packages.${system}.nix;
lib.warn "packaging-overriding check currently disabled because of a permissions issue on macOS" pkgs.emptyFile in
else assert (nix.appendPatches [ pkgs.emptyFile ]).libs.nix-util.src.patches == [ pkgs.emptyFile ];
# If this fails, something might be wrong with how we've wired the scope, if pkgs.stdenv.buildPlatform.isDarwin then
# or something could be broken in Nixpkgs. lib.warn "packaging-overriding check currently disabled because of a permissions issue on macOS" pkgs.emptyFile
pkgs.testers.testEqualContents { else
assertion = "trivial patch does not change source contents"; # If this fails, something might be wrong with how we've wired the scope,
expected = "${./.}"; # or something could be broken in Nixpkgs.
actual = pkgs.testers.testEqualContents {
# Same for all components; nix-util is an arbitrary pick assertion = "trivial patch does not change source contents";
(nix.appendPatches [ pkgs.emptyFile ]).libs.nix-util.src; expected = "${./.}";
}; actual =
# Same for all components; nix-util is an arbitrary pick
(nix.appendPatches [ pkgs.emptyFile ]).libs.nix-util.src;
};
*/
} }
// (lib.optionalAttrs (builtins.elem system linux64BitSystems)) { // (lib.optionalAttrs (builtins.elem system linux64BitSystems)) {
dockerImage = self.hydraJobs.dockerImage.${system}; dockerImage = self.hydraJobs.dockerImage.${system};