feat: add git:// provider for sourcing binaries from git repos#110
Merged
feat: add git:// provider for sourcing binaries from git repos#110
Conversation
Enables b.yaml to reference binaries from local or remote git repositories using the git://<repo>:<filepath> pattern, completing the provider system alongside GitHub, GitLab, Gitea, go://, and docker:// providers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new git:// provider to enable b.yaml to reference binaries from local or remote git repositories. The feature complements the existing GitHub, GitLab, Gitea, go://, and docker:// providers by allowing direct file extraction from git repositories.
Changes:
- Implements Git provider with support for both local and remote repositories
- Adds BinaryName logic for git:// refs that extracts binary name from filepath
- Integrates Git provider into the download flow alongside Docker and GoInstall providers
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/provider/git.go | New Git provider implementation with Install, LatestVersion, and helper methods for local/remote repos |
| pkg/provider/git_test.go | Comprehensive unit and integration tests for Git provider functionality |
| pkg/provider/provider.go | Enhanced BinaryName function to handle git:// refs by extracting filename from filepath component |
| pkg/binary/download.go | Integrated Git provider into downloadViaProvider switch statement |
| README.md | Updated documentation with git:// examples in install commands and b.yaml config |
fentas
pushed a commit
that referenced
this pull request
Feb 15, 2026
🤖 I have created a release *beep* *boop* --- ## [4.8.0](v4.7.1...v4.8.0) (2026-02-15) ### Features * add git:// provider for sourcing binaries from git repos ([#110](#110)) ([3d20c37](3d20c37)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables b.yaml to reference binaries from local or remote git repositories using the git://: pattern, completing the provider system alongside GitHub, GitLab, Gitea, go://, and docker:// providers.