guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 0ca0df427688d1c40a2840663d58735467986eec
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Nov 14 23:03:54 2026 +0000
gnu: git-bug: Update to 0.12.0.
* gnu/packages/task-management.scm (git-bug): Update to 0.12.0.
[source] <snippet>: Drop.
[arguments] <build-flags>: Set version.
<test-flags>: Rework the list of skipped tests.
[native-inputs]: Remove go-github-com-blevesearch-bleve-v2 and
go-gitlab-com-gitlab-org-api-client-go-0.116; add
go-github-com-blevesearch-snowballstem, go-github-com-coder-websocket,
go-github-com-fsnotify-fsnotify, go-github-com-git-bug-gitconfig,
go-github-com-mattn-go-isatty, go-gitlab-com-gitlab-org-api-client-go,
go-golang-org-x-crypto, go-golang-org-x-mod, go-golang-org-x-net,
go-golang-org-x-sync, go-golang-org-x-sys, go-golang-org-x-term,
go-golang-org-x-text, go-modernc-org-sqlite, and
go-resenje-org-singleflight.
* gnu/packages/golang-web.scm
(go-gitlab-com-gitlab-org-api-client-go-0.116):
Delete hidden ad-hoc variable.
Merges: guix/guix!12558
Relates-to: guix/guix!12545
---
gnu/packages/golang-web.scm | 25 ---------------
gnu/packages/task-management.scm | 68 +++++++++++++++++++++++++---------------
2 files changed, 42 insertions(+), 51 deletions(-)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 1d60412c9df..341bcf0bff5 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -24214,31 +24214,6 @@ https://openid.net/developers/how-connect-works/}.")
interact with GitLab in a simple and uniform way.")
(license license:asl2.0)))
-;; git-bug fails to build with the latest
-;; go-gitlab-com-gitlab-org-api-client-go. So, we package this version. See
-;; the git-bug package for details.
-(define-public go-gitlab-com-gitlab-org-api-client-go-0.116
- (hidden-package
- (package
- (inherit go-gitlab-com-gitlab-org-api-client-go)
- (name "go-gitlab-com-gitlab-org-api-client-go")
- (version "0.116.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://gitlab.com/gitlab-org/api/client-go")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0cajw57mcsgf0b8xk8z0bgfqsmz7wp7dwzwyapvdxn8a9kqzx59r"))))
- (arguments
- (substitute-keyword-arguments
- (package-arguments go-gitlab-com-gitlab-org-api-client-go)
- ((#:phases phases #~%standard-phases)
- #~(modify-phases #$phases
- (delete 'remove-examples))))))))
-
(define-public go-gitlab-com-gitlab-org-api-client-go-v2
(package
(inherit go-gitlab-com-gitlab-org-api-client-go)
diff --git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm
index d9366a44c1d..52b4502176d 100644
--- a/gnu/packages/task-management.scm
+++ b/gnu/packages/task-management.scm
@@ -171,7 +171,7 @@ following the Japanese kanban (boarding) style.")
(define-public git-bug
(package
(name "git-bug")
- (version "0.10.1")
+ (version "0.12.0")
(source
(origin
(method git-fetch)
@@ -180,14 +180,7 @@ following the Japanese kanban (boarding) style.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1s3y8ll2942d6my2wz6bbipram4l6brbwwfvp2nr8cchzrb23dl8"))
- (modules '((guix build utils)))
- (snippet
- #~(begin
- ;; git-bug supports v2, remove when a fresh release is tagged.
- (substitute* (find-files "." "\\.go$")
- (("github.com/blevesearch/bleve")
- "github.com/blevesearch/bleve/v2"))))))
+ (base32 "15h1sz5z8wgnq7d8rg6zpajlprr95h8d48y6d4f073rhi9xc4845"))))
(build-system go-build-system)
(arguments
(list
@@ -195,44 +188,67 @@ following the Japanese kanban (boarding) style.")
#:import-path "github.com/git-bug/git-bug"
#:embed-files
#~(list "prelude.graphql")
+ #:build-flags
+ #~(list (string-append
+ "-ldflags="
+ "-X github.com/git-bug/git-bug/commands.GitCommit=" #$version
+ " -X github.com/git-bug/git-bug/commands.GitLastTag=" #$version
+ " -X github.com/git-bug/git-bug/commands.GitExactTag="
#$version))
#:test-flags
+ ;; These tests require network access.
#~(list "-skip" (string-join
- (list
- ;; These tests require network access.
- "TestValidateProject"
- "TestValidateUsername"
- ;; This test is buggy. See
- ;; https://github.com/git-bug/git-bug/issues/809
- "TestGoGitRepo_Indexes")
- "|"))))
+ (list "TestPeriodic"
+ "TestStoreLoad"
+ "TestSubCacheDerived"
+ "TestValidateProject"
+ "TestValidateUsername"
+ ;; Test fails to find ssh comand.
+ "TestGitRepoSSH"
+ ;; An error is expected but got nil.
+ "TestGoGitStorage_Config")
+ "|"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "GODEBUG" "asynctimerchan=0"))))))
(native-inputs
(list go-github-com-99designs-gqlgen
go-github-com-99designs-keyring
+ go-github-com-michaelmure-go-term-text
+ go-github-com-protonmail-go-crypto
go-github-com-araddon-dateparse
go-github-com-awesome-gocui-gocui
- go-github-com-blevesearch-bleve-v2
+ go-github-com-blevesearch-snowballstem
+ go-github-com-coder-websocket
go-github-com-dustin-go-humanize
go-github-com-fatih-color
+ go-github-com-fsnotify-fsnotify
+ go-github-com-git-bug-gitconfig
go-github-com-go-git-go-billy-v5
go-github-com-go-git-go-git-v5
go-github-com-gorilla-mux
go-github-com-hashicorp-golang-lru-v2
- go-github-com-michaelmure-go-term-text
+ go-github-com-icrowley-fake
+ go-github-com-mattn-go-isatty
go-github-com-phayes-freeport
- go-github-com-protonmail-go-crypto
go-github-com-shurcool-githubv4
go-github-com-skratchdot-open-golang
go-github-com-spf13-cobra
go-github-com-stretchr-testify
go-github-com-vbauerster-mpb-v8
go-github-com-vektah-gqlparser-v2
- ;; The build fails with the latest (v1.28.1)
- ;; go-gitlab-com-gitlab-org-api-client-go. See
- ;; https://github.com/git-bug/git-bug/issues/1514 So, we use the
- ;; version specified in go.mod.
- go-gitlab-com-gitlab-org-api-client-go-0.116
+ go-gitlab-com-gitlab-org-api-client-go
+ go-golang-org-x-crypto
+ go-golang-org-x-mod
+ go-golang-org-x-net
go-golang-org-x-oauth2
- go-github-com-icrowley-fake
+ go-golang-org-x-sync
+ go-golang-org-x-sys
+ go-golang-org-x-term
+ go-golang-org-x-text
+ go-modernc-org-sqlite
+ go-resenje-org-singleflight
;; git is required only for tests.
git-minimal/pinned))
(home-page "https://github.com/git-bug/git-bug")