Build pygit2 as a part
Metadata
Current evaluation
Cross-architecture builds were fixed by merged PR #4393 (commit 5fbaab144), adding a libgit2 part so pygit2 links against a compatible native library.
Resolution: closed resolved
Reason: PR #4393 was merged as commit 5fbaab144 and added the required libgit2 build part to snapcraft.yaml, resolving the pygit2 architecture failures.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Cross-architecture builds were fixed by merged PR #4393 (commit 5fbaab144), adding a libgit2 part so pygit2 links against a compatible native library. | |
| stealth/space-bunny-alpha | — | closed resolved | Cross-architecture builds were fixed by merged PR #4393, adding a separate libgit2 build part to snapcraft.yaml so pygit2 links against a compatible native library. | |
| 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. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#4393
(confidence 100%)
Merged fix adding a source-built libgit2 part for pygit2.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #243 build(deps): make pygit2 a required dependency | craft-application | merged | Merged PR #243 made pygit2 a required runtime dependency in commit b0a3afed. | |
| #935 build(deps): loosen pygit2 dependency | craft-application | merged | Merged PR #935 loosened the pygit2 version constraint after verifying compatibility with intermediate and current releases, resolving #593; merged as commit 6fc53af4. |