!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

408 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.135 Servers

Load older messages


SenderMessageTime
7 Dec 2025
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingwhat context am i missing?19:11:45
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @commentator2.0:elia.garden
what context am i missing?
The env variable is CppNix specific and is kind of a kludge
19:12:21
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Also builtins.warn hasn’t landed yet I think because of the whole env variable?19:12:55
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Anyway minver is 2.18 and the abort on warm behavior can’t be relied on to be supported if it’s polyfilled19:13:45
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)* Anyway minver is 2.18 and the abort on warn behavior can’t be relied on to be supported if it’s polyfilled19:13:58
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Just grepping for “warn” would have been a better approach. Or do a scopedImport to make builtins.warn into a throw. 19:16:20
@thubrecht:matrix.orgthubrecht The issue at play I think is that lix now has builtins.warn but it righfully has no knowledge of the env variable, hence the lib polyfill does not execute and no throws happen 19:54:04
@thubrecht:matrix.orgthubrechtWhat is weird though is that there are similar checks that are done before, but they still pass...19:55:25
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @thubrecht:matrix.org
What is weird though is that there are similar checks that are done before, but they still pass...
Exit code is not checked?
20:15:37
@thubrecht:matrix.orgthubrechtIt is checked20:53:56
@thubrecht:matrix.orgthubrechtBut the other tests that use NIX_ABORT_ON_WARN don't actually fail because the warning in considered an error20:54:24
@thubrecht:matrix.orgthubrecht But because of error: cannot convert a thunk to JSON 20:54:31
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Ugh, wth20:54:57
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)That error doesn't make sense, nothing in user code should be able to observe thunks20:55:50
@thubrecht:matrix.orgthubrechtIt's evaluation an option20:57:29
@thubrecht:matrix.orgthubrecht* It's evaluating an option20:57:34
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Is this just for the nix-instantiate output right? 20:59:09
@thubrecht:matrix.orgthubrechtIt's at least for this, I did not investiguate further21:00:09
@thubrecht:matrix.orgthubrecht

The command was:

nix-instantiate -E 'import ./default.nix { modules = [ ./deprecated-wrapped.nix ];}' -A 'options.mergedEither.type.nestedTypes.right.functor.wrapped' --eval-only --json --show-trace

21:00:22
@thubrecht:matrix.orgthubrecht *

The command was:

nix-instantiate -E 'import ./default.nix { modules = [ ./deprecated-wrapped.nix ];}' -A 'options.mergedEither.type.nestedTypes.right.functor.wrapped' --eval-only --json

21:00:37
@thubrecht:matrix.orgthubrechtRedacted or Malformed Event21:00:53
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yeah then this is just a nix-instantiate not forcing thunks21:01:10
@thubrecht:matrix.orgthubrecht Even if it was forcing chunks, then the error would be cannot convert the built-in function 'isString' to JSON or something along the lines 21:02:51
@thubrecht:matrix.orgthubrechtAt the end of the day, the test passes but for the wrong reasons21:03:44
@thubrecht:matrix.orgthubrecht https://gerrit.lix.systems/c/lix/+/4679/16/misc/nixpkgs-lib-tests.patch this makes the tests behave correctly btw @xokdvium:matrix.org 22:38:46
8 Dec 2025
@jade_:matrix.orgjade_I told the people implementing fixing this to set NIX_CONFIG to make it use the new functionality and deprecate the weird environment variable O_o00:02:03
@jade_:matrix.orgjade_confused00:02:09
@jade_:matrix.orgjade_oh they snuck more legacy nonsense into there00:02:55
@jade_:matrix.orgjade_agh00:02:56
@thubrecht:matrix.orgthubrechtI sent https://github.com/NixOS/nixpkgs/pull/46890108:43:53

There are no newer messages yet.


Back to Room ListRoom Version: 10