Skip to content

refactor: Remove git binary dependency and update Dockerfile - #15

Merged
starpia-forge merged 6 commits into
mainfrom
remove-git-binary-dependency-13436628882548217009
Mar 8, 2026
Merged

refactor: Remove git binary dependency and update Dockerfile#15
starpia-forge merged 6 commits into
mainfrom
remove-git-binary-dependency-13436628882548217009

Conversation

@starpia-forge

Copy link
Copy Markdown
Owner

This commit completely removes the need for the external git binary to run the application.

Previously, the poller component relied on exec.Command to run git ls-remote to check if a remote branch has new commits. This has been replaced with the native go-git module which is already used for local clone/fetch/reset operations, utilizing gogit.NewRemote and ListContext.

Consequently, the runtime dependency on git has been removed from the application's Dockerfile.


PR created automatically by Jules for task 13436628882548217009 started by @starpia-forge

* Replaced `os/exec` git call in `internal/poller/poller.go` with `github.com/go-git/go-git/v5`
* Removed `git` package installation from `Dockerfile` as it is no longer needed

Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 5 commits March 8, 2026 04:47
* Replaced `os/exec` git call in `internal/poller/poller.go` with `github.com/go-git/go-git/v5`
* Adjusted go-git options to use default SSH credentials for git@ or ssh:// URLs
* Removed `git` package installation from `Dockerfile` as it is no longer needed

Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
* Replaced `os/exec` git call in `internal/poller/poller.go` with `github.com/go-git/go-git/v5`
* Adjusted go-git options to use default SSH credentials and fallback to local keys for ssh URLs
* Removed `git` package installation from `Dockerfile` as it is no longer needed

Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
* Replaced `os/exec` git call in `internal/poller/poller.go` with `github.com/go-git/go-git/v5`
* Adjusted go-git options to use default SSH credentials and fallback to local keys for ssh URLs
* Removed `git` package installation from `Dockerfile` as it is no longer needed
* Upgraded Go version to 1.26.1 in go.mod and Dockerfile to fix govulncheck standard library vulnerabilities
* Cleaned up dummy patch artifacts

Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
* Configured `golangci-lint-action` to use `install-mode: goinstall` in CI/CD workflow
* This prevents version mismatch errors when running the linter against the upgraded Go 1.26.1 codebase.

Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
* Modified `.github/workflows/ci-cd.yaml` to run `gosec` via `go install`
* This avoids a "go.mod requires go >= 1.26.1" error caused by the `securego/gosec@master` Docker action containing an older `1.26.0` toolchain.

Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
@starpia-forge
starpia-forge merged commit 5ea0a91 into main Mar 8, 2026
2 checks passed
@starpia-forge
starpia-forge deleted the remove-git-binary-dependency-13436628882548217009 branch March 8, 2026 06:38
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.

1 participant