← Back to issue list

Ignore vcs folders for `source-type: local` builds

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1795642
Type
issue
State
open
Author
~saviq
Labels
Created
Updated
Closed

Current evaluation

2017 feature request to auto-ignore .git/.bazaar/.hg (or add a source-ignore key) for source-type: local builds. No labels, comments, or maintainer interaction for ~8 years; .snapcraftignore workaround noted in the issue itself.

Suggested action: close stale

Reason: Filed ~2017 against the snapcraft 1.x era; the project has since been fully rewritten (modern craft-parts-based snapcraft, visible in the repo's snapcraft/parts/ layout), the proposed source-ignore: key was never added to the schema, and the issue itself acknowledges .snapcraftignore as the supported workaround. Zero comments, no labels, and 2890 days of inactivity confirm it is no longer actionable in its original form. Confidence is moderate because code-search tools failed (pinned SHA errors), so I could not verify whether current local-source handling already excludes VCS dirs.

Impact: 30 Quick Win: 15.0 Staleness: 95 Complexity: 50 Confidence: 50 Support Request: 45

Issue body

Snapcraft could DTRT and ignore .git, .bazaar, .hg folders etc. when source-type is local. It's very unlikely it's needed for the build, and if it is, the developer should probably explicitly say `source-type: $vcs`. A .snapcraftignore file is certainly an option, but would require developer action, and add more snap cruft to the repository. A `source-ignore:` key in the YAML might be more appropriate.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 15.0
Staleness: 95
Complexity: 50
Confidence: 50
Support Request: 45
close stale 2017 feature request to auto-ignore .git/.bazaar/.hg (or add a source-ignore key) for source-type: local builds. No labels, comments, or maintainer interaction for ~8 years; .snapcraftignore workaround noted in the issue itself.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 90
Support Request: 10
close stale Suggestion to automatically exclude VCS directories from local source builds, proposing a source-ignore YAML key. Unlabelled, zero comments, and inactive for over 7 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 85
Support Request: 5
close stale Suggests automatically ignoring VCS folders during local source builds in Snapcraft. Untriaged, zero comments, and inactive for nearly 8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 20
Confidence: 80
Support Request: 10
close stale Feature request to automatically exclude VCS directories from local source builds in Snapcraft. Open for ~8 years with no maintainer response or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 30
Confidence: 85
Support Request: 10
close stale Feature request to automatically ignore VCS directories during local source builds. Unlabelled, zero comments, and inactive for over seven years, indicating it is likely obsolete or superseded by current Snapcraft workflows.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.