-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github-cli: update to 2.4.0. #34157
github-cli: update to 2.4.0. #34157
Conversation
srcpkgs/github-cli/template
Outdated
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not using Go modules is definitely a regression. Can you show where it fails?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH: I don't know where execatly the problem is, but I get this error during building:
=> github-cli-2.2.0_1: building [go] [qemu] for x86_64...
[host] go-1.17.2_1: found (https://alpha.de.repo.voidlinux.org/current)
=> github-cli-2.2.0_1: installing host dependencies: go-1.17.2_1 ...
=> github-cli-2.2.0_1: running pre-build hook: 02-script-wrapper ...
=> github-cli-2.2.0_1: running pre_build ...
=> github-cli-2.2.0_1: running do_build ...
no required module provides package github.com/cli/cli/cmd/gh; to add it:
go get github.com/cli/cli/cmd/gh
=> ERROR: github-cli-2.2.0_1: do_build: 'go install -p "$XBPS_MAKEJOBS" -mod="${go_mod_mode}" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}' exited with 1
=> ERROR: in do_build() at common/build-style/go.sh:36
After I added go_mod_mode=off
it worked, so I pushed it.
That might be the issue causing the above too. |
Making the following change fixed things in my experience:
|
Thanks. Fixed it and bumped it to 1.4.0. |
@shizonic could you also fix update-check? site="https://github.com/cli/cli/releases"
pattern='/tags/v\K[\d.]+(?=.tar.gz)' |
Done. |
Testing the changes