!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
11 Dec 2024
@puck:puck.moepuckyeah, i suspect that got forgotten13:12:26
@yuka:yuka.devYureka (she/her)

so... this works as a quick fix for me

diff --git a/lix/libstore/build/local-derivation-goal.cc b/lix/libstore/build/local-derivation-goal.cc
index 794b85031..b136ef957 100644
--- a/lix/libstore/build/local-derivation-goal.cc
+++ b/lix/libstore/build/local-derivation-goal.cc
@@ -1528,7 +1528,7 @@ void LocalDerivationGoal::runChild()
                 if (i.second.source == "/proc") continue; // backwards compatibility
 
                 #if HAVE_EMBEDDED_SANDBOX_SHELL
-                if (i.second.source == "__embedded_sandbox_shell__") {
+                if (i.first == "/bin/sh") {
                     static unsigned char sh[] = {
                         #include "embedded-sandbox-shell.gen.hh"
                     };
13:47:20
@yuka:yuka.devYureka (she/her)but the proper fix is setting SANDBOX_SHELL correctly, but I'm not sure how/where to do that properly13:48:00
@puck:puck.moepuck in lix/libstore/meson.build; probably merging the if enable_embedded_sandbox_shell and if busybox.found() things a bit 14:08:15
@piegames:flausch.socialpiegamesAbout the tests, is there any good way to get the error messages pushed through CI so that we don't have to dig through build logs anymore?14:43:25
@piegames:flausch.socialpiegamesI know that GitLab for example uses some bespoke XML format stolen from JUNIT, but once you speak it the errors get integrated nicely14:43:58
@puck:puck.moepuckit'd be doable to hook this up to do buildbot html output; gerrit also has robot comments which might function for this, but i haven't really tried looking at how this integration would look yet14:49:18
@yuka:yuka.devYureka (she/her)
In reply to @puck:puck.moe
in lix/libstore/meson.build; probably merging the if enable_embedded_sandbox_shell and if busybox.found() things a bit
https://gerrit.lix.systems/c/lix/+/2305
15:49:30
@puck:puck.moepuckyeah, that seems reasonable to me, but i can't stare at it too hard rn15:52:12
@9999years:matrix.org9999yearshttps://gerrit.lix.systems/q/author:lix@piegames.de17:42:37
@9999years:matrix.org9999yearswhy doesn't this show any cls17:42:40
@9999years:matrix.org9999yearsgerrit is a mystery sometimes17:42:45
@9999years:matrix.org9999years not blocking. it's just a matter of taste & getting repeatedly burned by yaml in various forms 17:43:24
@9999years:matrix.org9999years i needed owner:lix@piegames.de. what even is the author field.... 17:43:51
@puck:puck.moepuckauthor is the author of the commit17:44:07
@puck:puck.moepuckand i think piegames' commits are on a different email that gerrit isn't aware of17:44:24
@9999years:matrix.org9999years ohhhh yeah they're from git@piegames.de 17:44:36
@puck:puck.moepuck yeah, author:git@piegames.de works 17:44:40
@puck:puck.moepuck(author and committer here are the git concept; if you rebase/etc you become committer but author stays the same, etc)17:44:57
@9999years:matrix.org9999years aside: this is about https://gerrit.lix.systems/c/lix/+/2190/comment/e5501eaa_12118801/ 17:45:47
@9999years:matrix.org9999yearsi have had many bad experiences with yaml, i'm not sure this justifies pulling in a yaml parser/formatter (even if we already had one in closure somewhere), i'm not convinced that making these json would have much impact, etc. etc.17:46:52
@9999years:matrix.org9999years so i would certainly like to have the json output be tested in its json form and not after conversion to yaml, but Whatever 17:47:08
@puck:puck.moepuckyeah, i'd say it's not going to be the most readable anyways17:47:50
@puck:puck.moepuck i've used yaml in https://puck.moe/git/nixtest partially for output-diff-reasons 17:48:18
@puck:puck.moepuck * i've used yaml in https://puck.moe/git/nixtest partially for output-diff-reasons, and you're not supposed to manually write the input for it 17:49:54
@puck:puck.moepuck * i've used yaml in https://puck.moe/git/nixtest partially for output-diff-reasons, and you're not supposed to manually write it anyways 17:49:58
@vigress9:matrix.orgV. 🏳️‍⚧️Redacted or Malformed Event18:52:19
@piegames:flausch.socialpiegames
In reply to @9999years:matrix.org
so i would certainly like to have the json output be tested in its json form and not after conversion to yaml, but Whatever
I mean the yaml is not getting tested in any besides "does not change" and "a human looks at the diff"
19:25:38
@rhelmot:matrix.orgrhelmot joined the room.19:42:47
@rhelmot:matrix.orgrhelmotI've been having this problem with nix forever and just working around it but now that lix is here and I can have nice things I figured I would ask - does anyone know why the nix/lix testcases fail when you build it in a sandboxed nix daemon that is NOT running on nixos? Asking here first on the off chance that this is a known quantity and I can save myself some debugging time :)19:56:53

Show newer messages


Back to Room ListRoom Version: 10