-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Request for nix-build
to have a flag that disables the checkPhase
.
#55425
Comments
This will probably require changing how Nix works. Right now if you set |
Probably best then to move the tests into a separate derivation and use Anyway, this is a Nix issue, not Nixpkgs, so closing. |
What do you mean |
@CMCDragonkai please check the Nix manual... |
btw, there is also config.doCheckByDefault |
@FRidh So I see that |
These are indeed just strings. No, there is no way to check for this, it's all declarative. |
(sorry to revive such an old issue, but it seems it's still well-indexed by search engines)
Where possible it's preferable to move those from |
I thought the very concept of the checkPhase, or just phases in general, was not just nixpkgs but stdenv specific. How is it a nix issue? A work-around for anyone who needs to rebuild an entire system from stdenv as fast as possible without checks:
|
This is a feature request. I would find it quite useful to have a flag with
nix-build
to skip thecheckPhase
. I know this is possible by overriding the derivation, wouldn't having a flag for this be way more convenient so that it can be done on the command line instead.The main reason for this is that in some cases tests cannot be run on the machine where the build is occurring. For example I have an application that has a
checkPhase
running tests that involve the GPU. But on machines without the GPU they can still build the output, but cannot run the tests.The text was updated successfully, but these errors were encountered: