You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the solution appears to be to use passthru.tests instead of meta.tests, which is a possibility but appears semantically wrong.
Would it be possible to make Nix able to have derivations in meta? I think a legitimate display value for these would be the result of instantiating the derivation, without building it.
Alternatively, I think checkMeta should be called at each build, so that it's not possible to miss it like we did :)
It's indeed the workaround implemented in NixOS/nixpkgs#50233, but it feels (at least to me) semantically wrong.
Then, if meta is to stay a list of stringifyable things only, I guess it'd be useful to make sure such breakage can't fly under the radar again, eg. by making building a derivation run checkMeta on it?
On Nov 12, 2018, at 11:02, Eelco Dolstra ***@***.***> wrote:
Doesn't make-tarball.nix in Nixpkgs already catch this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
For make-tarball.nix I don't really know but it appears it passed. As for ofborg I think it passed because the check-meta.nix had been adapted to accept derivations, and ofborg didn't expect nix to perform additional checks on meta in some cases more than the people who had reviewed the original RFC?
Activity
edolstra commentedon Nov 12, 2018
metais really not intended for this. It's a list of name/value pairs for use bynix-env. Indeedpassthrushould be used instead.Ekleog commentedon Nov 12, 2018
It's indeed the workaround implemented in NixOS/nixpkgs#50233, but it feels (at least to me) semantically wrong.
Then, if
metais to stay a list of stringifyable things only, I guess it'd be useful to make sure such breakage can't fly under the radar again, eg. by making building a derivation runcheckMetaon it?edolstra commentedon Nov 12, 2018
Doesn't
make-tarball.nixin Nixpkgs already catch this?grahamc commentedon Nov 12, 2018
Ekleog commentedon Nov 13, 2018
For
make-tarball.nixI don't really know but it appears it passed. As for ofborg I think it passed because thecheck-meta.nixhad been adapted to accept derivations, and ofborg didn't expect nix to perform additional checks onmetain some cases more than the people who had reviewed the original RFC?JohnAZoidberg commentedon Apr 28, 2019
Is the conclusion to use
passthruinstead or do we want to further discuss it?domenkozar commentedon Apr 29, 2019
The former :) It would be good to document this better though.
docs: document that nix will not support derivations in meta
stale commentedon Feb 20, 2021
I marked this as stale due to inactivity. → More info
stale commentedon Apr 28, 2022
I closed this issue due to inactivity. → More info
check-meta: remove support for meta.tests
tomberek commentedon Aug 13, 2026
Closing as stale. Re-open if needed.