New comment by classabbyamp on void-packages repository https://github.com/void-linux/void-packages/pull/36716#issuecomment-1100770941 Comment: I was able to get it to work with `hut=$(find $GOPATH/bin -name hut)` and `vtargetrun` ```diff diff --git a/srcpkgs/hut/template b/srcpkgs/hut/template index 25f1d9bdd2..f1448fcf1f 100644 --- a/srcpkgs/hut/template +++ b/srcpkgs/hut/template @@ -4,6 +4,7 @@ version=0.1.0 revision=1 wrksrc="${pkgname}-v${version}" build_style=go +build_helper=qemu go_import_path="git.sr.ht/~emersion/hut" hostmakedepends="scdoc" short_desc="CLI tool for sr.ht" @@ -15,13 +16,11 @@ distfiles="https://git.sr.ht/~emersion/hut/archive/v${version}.tar.gz" checksum=5af8f1111f9ec1da9a818978eb1f013dfd50ad4311c79d95b0e62ad428ac1c59 post_install() { - $GOPATH/bin/hut completion bash >hut.bash - $GOPATH/bin/hut completion zsh >hut.zsh - $GOPATH/bin/hut completion fish >hut.fish - - vcompletion hut.bash bash - vcompletion hut.zsh zsh - vcompletion hut.fish fish + hut=$(find $GOPATH/bin -name hut) + for sh in bash fish zsh; do + vtargetrun $hut completion $sh > hut.$sh + vcompletion hut.$sh $sh + done vlicense LICENSE ```