There's a merged pull request on the void-packages repository chroot.sh: export XBPS_ALT_REPOSITORY to chroot https://github.com/void-linux/void-packages/pull/27026 Description: Outside of chroot, we calcucate XBPS_ALT_REPOSITORY only to throw it away and calculate it again inside chroot. Normally, this is not problem except when we're working with a Git's worktree, in which case, we don't have the access to original gitdir inside chroot. Let's bring that value from outside of chroot into it.