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
haskellPackages.persistent-postgresql: don't check #84272
haskellPackages.persistent-postgresql: don't check #84272
Conversation
Had problem with this (that persistent-postgresql is running tests against an actual local database) 👍 |
@turboMaCk persistent-postgresql is marked broken. Can you mark it unbroken? https://discourse.nixos.org/t/video-tutorial-how-to-fix-broken-haskell-packages-in-nix/3968 This appears to build though, so it is fine to merge in after being marked unbroken. |
@cdepillabout are you sure it's marked as broken? I admit I had |
@turboMaCk Unless I'm doing something wrong, I believe it is: $ hub checkout https://github.com/NixOS/nixpkgs/pull/84272
From github.com:NixOS/nixpkgs
* [new ref] refs/pull/84272/head -> persistent-postgresql
Switched to branch 'persistent-postgresql'
$ nix-build -A haskellPackages.persistent-postgresql
error: Package ‘persistent-postgresql-2.10.1.2’ in pkgs/development/haskell-modules/hackage-packages.nix:186837 is marked as broken, refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
$ git grep persistent-postgresql
...
pkgs/development/haskell-modules/configuration-hackage2nix.yaml: - persistent-postgresql |
Test suite requires database. Disabling tests as is done for mysql backend.
7e98670
to
69996c8
Compare
You're right sorry. Not sure why I missed it few moments ago. IRemoving |
@@ -1474,7 +1474,9 @@ self: super: { | |||
vty = self.vty_5_28_2; | |||
}); | |||
|
|||
# Test suite requires database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding this comment as well
Looks good, thanks! |
Disable tests for persistent-postgresql. Test suite now requires database.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)