pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: stray files in go build / bob sandbox not empty



* On 2026-07-09 at 23:21 BST, Greg Troxel wrote:

 go is escaping FAKE_HOME set up by pkgsrc

Myself and wiz noticed something similar with I think cargo, and while I didn't fully debug it I think it's caused by tools going directly to getpwnam / pw_dir, so I'm not sure we can avoid it.

 some combination of leftover files in home and bob objecting to
 polluted sandoxes

The way to clean this up in bob is to add a hook so that it's removed after every build, e.g.:

  sandboxes = {
    hooks = {
      { action = "cmd",
        destroy = "rm -rf ${bob_sandbox_path}/home/gdt/.config/go" },
    }
  }

or similar.

--
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index