refactor: Remove git binary dependency and update Dockerfile - #15
Conversation
* 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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
* 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>
This commit completely removes the need for the external
gitbinary to run the application.Previously, the
pollercomponent relied onexec.Commandto rungit ls-remoteto check if a remote branch has new commits. This has been replaced with the nativego-gitmodule which is already used for local clone/fetch/reset operations, utilizinggogit.NewRemoteandListContext.Consequently, the runtime dependency on
githas been removed from the application'sDockerfile.PR created automatically by Jules for task 13436628882548217009 started by @starpia-forge