Skip to content

build: Update module github.com/go-git/go-git/v6 to v6.0.0-alpha.2#50

Merged
pjbgf merged 4 commits intomainfrom
renovate/go-git
Apr 24, 2026
Merged

build: Update module github.com/go-git/go-git/v6 to v6.0.0-alpha.2#50
pjbgf merged 4 commits intomainfrom
renovate/go-git

Conversation

@go-git-renovate
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/go-git/go-git/v6 v6.0.0-alpha.1v6.0.0-alpha.2 age confidence

Release Notes

go-git/go-git (github.com/go-git/go-git/v6)

v6.0.0-alpha.2

Compare Source

🚀 Release Summary

⚠️ v6 Alpha Release

This is an alpha release of go-git v6.

We encourage users to test this version in real-world scenarios and help us validate the new transport layer and features.

👉 Please report any issues, bugs, or unexpected behavior via GitHub issues.

This release brings major improvements across transport, performance, and Git feature support, along with significant internal modernization.

🚀 Highlights
  • Major refactor of the plumbing/transport API with a new design, improving extensibility and aligning behaviour more closely with upstream Git.
  • Performance improvements in remote operations, including faster send-pack.
  • Significant improvements to HTTP transport robustness and protocol correctness.
  • File transport: added support for gitfile and improved repository detection logic.
🐛 Bug Fixes
  • repository: fix DeleteBranch failing when using full ref names (#​1951)
  • worktree: fix Add silently failing for absolute paths (#​1949)
  • transport/http: fix multi-round pack negotiation (#​1992)
  • transport/http: harden redirect handling to match canonical Git (#​1997)
  • transport/http: fix data race in dumb HTTP test server (#​1960)
  • transport: avoid emitting duplicate NAK after empty ACKs (#​1989)
  • updreq: support multiple shallow records in upload request decoding (#​1952)
  • file transport: fix Windows file handle leak (#​1976)
  • worktree tests: fix Windows file handle leaks (#​1996)
  • transport tests: correct receive-pack usage (#​1988)
✨ Enhancements
  • remote: faster send-pack implementation (#​1947)
  • object: improved object walk painting (#​1973)
  • repository: add gitfile support and improve loader detection (#​1994)
  • config: introduce ConfigLoader plugins aligned with upstream Git (#​1924)
🔧 Refactoring
  • plumbing/transport: replace transport API with new design (#​1972)
  • plumbing/transport: follow-up API refactoring and cleanup (#​1983)
📚 Documentation
  • docs: updates and introduction of AI Policy (#​1913)

📋 Full Changelog

What's Changed
New Contributors

Full Changelog: go-git/go-git@v6.0.0-alpha.1...v6.0.0-alpha.2


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@go-git-renovate
Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -t ./...
go: downloading github.com/go-git/go-git/v6 v6.0.0-alpha.2
go: downloading github.com/go-git/go-billy/v6 v6.0.0-20260410103409-85b6241850b5
go: downloading github.com/go-git/go-git-fixtures/v6 v6.0.0-20260410103352-fe4fd2baf1dc
go: downloading golang.org/x/crypto v0.50.0
go: downloading golang.org/x/term v0.42.0
go: downloading github.com/spf13/cobra v1.10.2
go: downloading github.com/cyphar/filepath-securejoin v0.6.1
go: downloading golang.org/x/sys v0.43.0
go: downloading github.com/pjbgf/sha1cd v0.5.0
go: downloading github.com/kevinburke/ssh_config v1.6.0
go: downloading github.com/sergi/go-diff v1.4.0
go: downloading golang.org/x/sync v0.20.0
go: downloading github.com/inconshreveable/mousetrap v1.1.0
go: downloading github.com/spf13/pflag v1.0.9
go: downloading github.com/go-git/gcfg/v2 v2.0.2
go: downloading github.com/ProtonMail/go-crypto v1.4.1
go: downloading github.com/emirpasic/gods v1.18.1
go: downloading golang.org/x/net v0.53.0
go: downloading github.com/Microsoft/go-winio v0.6.2
go: downloading github.com/klauspost/cpuid/v2 v2.3.0
go: downloading github.com/cloudflare/circl v1.6.3
go: downloading github.com/go-git/go-git v4.7.0+incompatible
go: github.com/go-git/cli/cmd/gogit imports
	github.com/go-git/go-git/v6/backend/git: cannot find module providing package github.com/go-git/go-git/v6/backend/git
go: github.com/go-git/cli/cmd/gogit-http-server imports
	github.com/go-git/go-git/v6/backend/http: cannot find module providing package github.com/go-git/go-git/v6/backend/http

@pjbgf
Copy link
Copy Markdown
Member

pjbgf commented Apr 24, 2026

@copilot fix the building issues

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 24, 2026

@copilot fix the building issues

Fixed in commits 34ad6c1 and dc00876. The v6.0.0-alpha.2 release introduced several API changes that needed updating:

  • backend/git and backend/http sub-packages were merged into a single backend package — updated server/git/server.go (added backendHandler/NewBackend) and cmd/gogit/daemon.go and cmd/gogit-http-server/main.go
  • transport.Endpoint/transport.AuthMethod were removed — replaced with *url.URL and []client.Option across clone.go, fetch.go, pull.go, push.go, and main.go
  • ReceivePackOptions/UploadPackOptions were renamed to ReceivePackRequest/UploadPackRequest — updated receive-pack.go and upload-pack.go
  • go.sum updated via go mod tidy

@pjbgf
Copy link
Copy Markdown
Member

pjbgf commented Apr 24, 2026

@copilot Fix the issues returned by make validate.

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 24, 2026

@copilot Fix the issues returned by make validate.

Fixed in commit 4a5ff3f. The funcorder linter required the NewBackend constructor to be placed after the Handler interface declaration, so I reordered the declarations in server/git/server.go accordingly. make validate now reports 0 issues.

@pjbgf pjbgf merged commit 0c84bd9 into main Apr 24, 2026
4 checks passed
@pjbgf pjbgf deleted the renovate/go-git branch April 24, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants