← Back to issue list

Build pygit2 as a part

View original Github issue

Metadata

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

Current evaluation

Resolved by isolating pygit2 as a separate build part in snapcraft.yaml, fixing cross-architecture build failures. The change was implemented via the referenced pull requests and the issue was closed.

Suggested action:

No scores available.

Issue body

### Bug Description Snapcraft does not build on all architectures after pygit2 was added as a dependency. It should be its own part in snapcraft's snapcraft.yaml. More info: - https://github.com/snapcore/snapcraft/pull/4376 - https://github.com/snapcore/snapcraft/pull/4378 - https://chat.charmhub.io/charmhub/pl/owzdijj1wpnjix67of1ypfrbhc ### To Reproduce N/A ### Environment N/A ### snapcraft.yaml ```shell https://github.com/snapcore/snapcraft/blob/main/snap/snapcraft.yaml ``` ### Relevant log output ```shell N/A ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Resolved by isolating pygit2 as a separate build part in snapcraft.yaml, fixing cross-architecture build failures. The change was implemented via the referenced pull requests and the issue was closed.
qwen/qwen3.6-35b-a3b The reported cross-architecture build failure caused by pygit2 was resolved by isolating the library as a separate snapcraft part. The fix was merged via pull requests #4376 and #4378.
qwen/qwen3.6-35b-a3b Resolved by merging the referenced pull requests, which added pygit2 as a separate part in snapcraft.yaml to fix cross-architecture build failures.
qwen3.6-35b-a3b-mtp-q6 Closed without comments or explicit resolution. The request to isolate pygit2 as a separate part to fix cross-architecture build failures was abandoned or superseded by the linked pull requests.
qwen3.6-35b-a3b-mtp-q6 Abandoned. Closed without comments or resolution. The proposal to isolate pygit2 as a separate build part to fix cross-architecture failures was not implemented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2676 build(deps): enable newer pygit2 on Ubuntu 26.04 charmcraft merged Merged to enable newer pygit2 on Ubuntu 26.04. Approved by two reviewers. CI included failing snap tests and type checking warnings, but notifications were non-blocking. Changes modified four files (+108/-13).
73%
#4393 fix: add part in snapcraft.yaml to build libgit2 snapcraft merged Merged PR #4393 resolves #4379 by adding a snapcraft.yaml part to compile libgit2 from source and disable wheel downloads. Approved by two reviewers, passed CI, and merged into main.
71%