Your one-stop-cake-shop for everything Freshly Baked has to offer

build(pm): trace grouped system and home evaluates #182

merged opened by a.starrysky.fyi targeting main from private/minion/push-smklqylmuplo

We were getting an evaluation error in one of our systems, and it wasn't obvious which it was coming from. Adding error context didn't seem to show up - it was an assertion so that may have been the cause - so instead some printf debugging was in order...

...happily, it worked great!

Labels

None yet.

requested-reviewers

None yet.

tested-working

None yet.

rejected

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:uuyqs6y3pwtbteet4swt5i5y/sh.tangled.repo.pull/3md43bs53jo22
+5 -2
Diff #3
+5 -2
packetmix/project.nix
··· 36 '' 37 + (builtins.concatStringsSep "\n" ( 38 config.lib.attrs.mapToList ( 39 - name: value: ''ln -s "${value.result.config.system.build.toplevel}" "$out/${name}"'' 40 ) config.systems.nixos 41 )); 42 }; ··· 58 + (builtins.concatStringsSep "\n" ( 59 config.lib.attrs.mapToList ( 60 name: value: 61 - ''ln -s "${value.result.${stdenv.hostPlatform.system}.activationPackage}" "$out/${name}"'' 62 ) (config.lib.attrs.filter (_: value: value.result ? ${stdenv.hostPlatform.system}) config.homes) 63 )); 64 };
··· 36 '' 37 + (builtins.concatStringsSep "\n" ( 38 config.lib.attrs.mapToList ( 39 + name: value: 40 + builtins.trace "Evaluating the system ${name}" ''ln -s "${value.result.config.system.build.toplevel}" "$out/${name}"'' 41 ) config.systems.nixos 42 )); 43 }; ··· 59 + (builtins.concatStringsSep "\n" ( 60 config.lib.attrs.mapToList ( 61 name: value: 62 + builtins.trace "Evaluating the home ${name}" ''ln -s "${ 63 + value.result.${stdenv.hostPlatform.system}.activationPackage 64 + }" "$out/${name}"'' 65 ) (config.lib.attrs.filter (_: value: value.result ? ${stdenv.hostPlatform.system}) config.homes) 66 )); 67 };

History

4 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
build(pm): trace grouped system and home evaluates
5/5 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
build(pm): trace grouped system and home evaluates
5/5 success
expand
expand 0 comments
1 commit
expand
build(pm): trace grouped system and home evaluates
expand 0 comments
1 commit
expand
build(pm): trace grouped system and home evaluates
expand 0 comments