Skip to content

feat: add git:// provider for sourcing binaries from git repos#110

Merged
fentas merged 1 commit intomainfrom
feat/git-provider
Feb 15, 2026
Merged

feat: add git:// provider for sourcing binaries from git repos#110
fentas merged 1 commit intomainfrom
feat/git-provider

Conversation

@fentas
Copy link
Owner

@fentas fentas commented Feb 15, 2026

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.

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>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 fentas merged commit 3d20c37 into main Feb 15, 2026
13 checks passed
@fentas fentas deleted the feat/git-provider branch February 15, 2026 22:26
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants