New comment by NyaaaWhatsUpDoc on void-packages repository https://github.com/void-linux/void-packages/pull/34157#issuecomment-1003174811 Comment: Making the following change fixed things in my experience: ``` diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template index 3044ccc38b..4b1251b900 100644 --- a/srcpkgs/github-cli/template +++ b/srcpkgs/github-cli/template @@ -5,9 +5,8 @@ revision=1 wrksrc="cli-${version}" build_style=go build_helper=qemu -go_import_path="github.com/cli/cli/cmd/gh" -go_ldflags="-X github.com/cli/cli/internal/build.Version=v${version}" -go_mod_mode="off" +go_import_path="github.com/cli/cli/v2/cmd/gh" +go_ldflags="-X github.com/cli/cli/v2/internal/build.Version=v${version}" short_desc="GitHub CLI tool" maintainer="shizonic " license="MIT" @@ -20,7 +19,7 @@ pre_build() { local _date if [ "$SOURCE_DATE_EPOCH" ]; then _date="$(date --utc --date "@$SOURCE_DATE_EPOCH" "+%Y-%m-%d")" - go_ldflags="$go_ldflags -X github.com/cli/cli/internal/build.Date=${_date}" + go_ldflags="$go_ldflags -X github.com/cli/cli/v2/internal/build.Date=${_date}" fi } ```