← Back to issue list

remote-build: create wrapper for the pygit2 library

View original Github issue

Metadata

Project
snapcraft
Number
#4320
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Closed as abandoned after a maintainer recommended pygit2 instead of GitPython; no resolving PR or commit was cited in the closure.

Resolution: closed stale

Reason: The last recorded action was mr-cal's 2023-09-11 comment relaying @sergiusens' recommendation to use pygit2. No replacement issue, merged fix, or closing implementation was referenced after prolonged inactivity.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Create a new module `snapcraft/remote_build/git.py` to wrap the [GitPython](https://gitpython.readthedocs.io/en/stable/) library. Add the following functions: - `init(exist_ok: bool)` - `is_repo()` - `is_dirty()` - `add(add_all: bool)` - `commit(message: str)` - `push(refspec: str = “HEAD”, url: str)` ### Why it needs to get done The legacy code uses snapcraft_legacy’s [Git](https://github.com/snapcore/snapcraft/blob/423826a119074fd7776e01f405c51a753292b6cd/snapcraft_legacy/internal/sources/_git.py#L27) class for git-related operations. In the new code, this will be replaced with the [GitPython](https://gitpython.readthedocs.io/en/stable/) library, encapsulated by a wrapper class.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as abandoned after a maintainer recommended pygit2 instead of GitPython; no resolving PR or commit was cited in the closure.
stealth/space-bunny-alpha — closed superseded Abandoned in favor of pygit2: @sergiusens recommended it over GitPython, replacing the proposed remote_build/git.py wrapper approach; no implementation PR is linked.
qwen/qwen3.6-35b-a3b — — Request to create a GitPython wrapper for remote-build was closed and superseded. A maintainer recommended switching to pygit2 instead, abandoning the original implementation plan.
qwen/qwen3.6-35b-a3b — — Creating a GitPython wrapper for remote-build was abandoned. Maintainer mr-cal recommended switching to pygit2 instead, closing the original implementation plan.
qwen/qwen3.6-35b-a3b — — Superseded and closed without implementation after a maintainer recommended switching from GitPython to pygit2 for remote-build operations.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The GitPython wrapper request was superseded after a maintainer recommended switching to the pygit2 library instead. No code was merged.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#4368 (confidence 70%)

    Merged commit dc58181e8 added a remote-build GitRepo class, but it was not cited as the closure resolution.

Related issues

No related issues found above the similarity threshold.