← Back to issue list

Build warns when vim is the editor

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1944982
Type
issue
State
open
Author
~knitzsche
Labels
—
Created
Updated
Closed
—

Current evaluation

vim leaves .snapcraft.yaml.swp swap files in snap/, triggering the permanent 'snap directory is meant specifically for snapcraft' warning; asks for an exemption. Still open, check has no backup/swap-file allowance.

Suggested action: keep open

Reason: The check is still active and unamended: `_EXPECTED_SNAP_DIR_PATTERNS` in snapcraft/parts/project_check.py only allows snapcraft.yaml, .snapcraft, hooks, keys, local, plugins and gui, so `.snapcraft.yaml.swp` still triggers the emit.progress warning reported in the body. Maintainer sergiusens replied it is 'mostly a warning that files are dropped in there and should not be of concern for iteration' — a deprioritization, not a rejection, so the request stays valid; the fix would be a one-line regex addition plus a unit test alongside the existing cases in tests/unit/parts/test_project_check.py.

Evaluated by: mr-cal-bot

Impact: 28 Quick Win: 18 Complexity: 12 Confidence: 86 Actionability: 74

Issue body

vim editor creates swp files for recovery in the same directory as the source file being edited. When editing snapcraft.yaml, a file like this is created: snap/.snapcraft.yaml.swp This causes the following errors (at least when building in destructive mode): The 'snap' directory is meant specifically for snapcraft, but it contains the following non-snapcraft-related paths, which is unsupported and will cause unexpected behavior: - .snapcraft.yaml.swp If you must store these files within the 'snap' directory, move them to 'snap/local', which is ignored by snapcraft. Perhaps snapcraft could make and expections for vim swp files.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 28
Quick Win: 18
Complexity: 12
Confidence: 86
Actionability: 74
keep open vim leaves .snapcraft.yaml.swp swap files in snap/, triggering the permanent 'snap directory is meant specifically for snapcraft' warning; asks for an exemption. Still open, check has no backup/swap-file allowance.
stealth/space-bunny-alpha
Impact: 18
Quick Win: 11
Complexity: 12
Confidence: 58
Actionability: 68
keep open vim leaves .snapcraft.yaml.swp swap files in snap/, triggering the permanent 'snap directory is meant specifically for snapcraft' warning; asks for an exception. Maintainer replied it is only a warning, low concern.
stealth/space-bunny-alpha
Impact: 25
Quick Win: 17
Complexity: 15
Confidence: 91
Actionability: 82
needs triage Snapcraft flags Vim swap files left beside snapcraft.yaml under snap/; a valid request exists to exempt common editor backup files from the project preflight warning.
qwen/qwen3.8-27b
Impact: 20
Quick Win: 15
Staleness: 88
Complexity: 25
Confidence: 55
Support Request: 30
needs triage Feature request: snapcraft build warns about vim swap files (.snapcraft.yaml.swp) created in the snap/ directory when editing snapcraft.yaml, asking for an exception for editor temp files. No maintainer response, no labels, 0 comments, inactive ~4.5 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 15
Confidence: 85
Support Request: 10
needs triage Snapcraft warns about vim .swp recovery files in the snap/ directory during builds. The issue remains unlabelled, has zero maintainer comments, and has been inactive for over four years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 85
Support Request: 10
close stale Reports a snapcraft build warning triggered by vim swap files in the snap directory. Suggests ignoring .swp files. The issue has zero maintainer interaction, no comments, and is nearly five years old.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 10
Confidence: 80
Support Request: 10
close stale Snapcraft warns about vim swap files in the snap directory during builds. The report is over four years old, has zero maintainer interaction, and remains unlabelled.

Update history

Date Change
created

Related work

  • Duplicate Of: snapcraft (launchpad)#1795780 (confidence 72%)

    Earlier open report asking snapcraft to stop warning about editor backup files (snapcraft.yaml~) in snap/; same allowlist in project_check.py, still unhandled and unlabelled

Related issues

Issue Project State Summary Similarity
#1795780 Snapcraft complains about "snapcraft.yaml~" in snap/ dir snapcraft (launchpad) open Asks snapcraft to stop warning about editor backup files like snapcraft.yaml~ in snap/. The check in snapcraft/parts/project_check.py still flags any non-allowlisted path; no backup-file exemptions added. Unlabelled, no maintainer response.
73%