← Back to issue list

Opt out of adding git as a build-package

View original Github issue

Metadata

Project
craft-parts
Number
#919
Type
issue
State
open
Author
lengau
Labels
—
Created
Updated
Closed
—

Current evaluation

Maintainer-filed feature request (JIRA CRAFT-3763) to skip adding the git build-package when craft.git is on the system; prerequisite #900 landed via #925/11be8c7a, but deb/dnf/yum get_packages_for_source_type still return {"git"} unconditionally

Suggested action: keep open

Reason: The blocking dependency #900 was resolved by PR #925 / commit 11be8c7a, which added craft_parts/utils/git.py::get_git_command() (changelog: "Prefer craft.git as the binary to handle git sources"), but the actual opt-out requested here is not implemented: craft_parts/packages/deb.py:630-631 (and dnf.py:45-46, yum.py:59-60) still return packages = {"git"} for git source type with no craft.git check, so git is still installed as a build-package. The issue is valid, scoped, authored by a maintainer, and has an internal tracking ticket (CRAFT-3763), so it should stay open. Slight uncertainty is about the intended mechanism (automatic craft.git detection vs. an explicit option, and interaction with plugins such as rust_plugin that also request "git").

Evaluated by: mr-cal-bot

Impact: 35 Quick Win: 18 Complexity: 30 Confidence: 82 Actionability: 72

Issue body

### What needs to get done Allow the application to opt out of adding git as a build-package if `craft.git` exists. Depends on https://github.com/canonical/craft-parts/issues/900 ### Why it needs to get done For future bases we want to be able to exclude having git as a build package.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 35
Quick Win: 18
Complexity: 30
Confidence: 82
Actionability: 72
keep open Maintainer-filed feature request (JIRA CRAFT-3763) to skip adding the git build-package when craft.git is on the system; prerequisite #900 landed via #925/11be8c7a, but deb/dnf/yum get_packages_for_source_type still return {"git"} unconditionally
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 13
Complexity: 40
Confidence: 75
Actionability: 70
needs triage Feature request to conditionally skip adding git to build-packages when craft.git is available. Depends on craft-parts#900 which was abandoned without implementation.
qwen/qwen3.8-27b
Impact: 40
Quick Win: 22
Staleness: 72
Complexity: 45
Confidence: 72
Support Request: 10
needs triage Feature request to allow opting out of git as a build-package when craft.git binary is present. Depends on #900 (closed without implementation), but related PR #925 already merged craft.git preference. No maintainer activity in ~18 months, unlabelled.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 30
Confidence: 75
Support Request: 10
close stale Feature request to allow opting out of adding git as a build-package if craft.git exists. Currently blocked by upstream issue #900 and has seen no maintainer activity or progress in over 16 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 30
Confidence: 90
Support Request: 10
needs triage Feature request to allow opting out of git as a build-package. Over a year old, unlabelled, and lacks maintainer assessment or assignee, awaiting initial triage.

Update history

No update history recorded yet.

Related work

  • Related To: craft-parts#900 (confidence 90%)

    Stated dependency of #919; closed by PR #925 / commit 11be8c7a which added get_git_command() preferring craft.git, so the prerequisite is now satisfied

  • Related To: craft-parts#925 (confidence 80%)

    Implementing PR for #900; changed runtime git invocation only, not the build-package lists in deb/dnf/yum repositories

Related issues

No related issues found above the similarity threshold.