← Back to issue list

Snapcraft complain on a non-executable hook named `README.md`

View original Launchpad issue

Metadata

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

Current evaluation

Snapcraft build fails when snap/hooks/ contains a non-executable README.md used to document sub-dirs; reporter argues only known hook names should be validated. Open ~8 years, zero comments, no labels or maintainer engagement.

Suggested action: needs triage

Reason: The issue has no labels, no assignee, and zero comments or maintainer response in ~8 years (last activity 2191 days ago), so it has never been triaged. It is a plausible real bug (build failure on a README.md in snap/hooks/), but I could not confirm whether current snapcraft still treats every file in snap/hooks/ as a hook, so it needs a maintainer to assess relevance before any close decision.

Impact: 35 Quick Win: 24.5 Staleness: 90 Complexity: 30 Confidence: 55 Support Request: 15

Issue body

Error message: ``` Determining the version from the project repo (version-script). The version has been set to '2.8.1-d+pkg-8c01' hook 'README.md' is not executable Build failed ``` This causes trouble on documenting the sub-dirs under /snap[1]. Since according to [Supported snap hooks - doc - snapcraft.io](https://forum.snapcraft.io/t/supported-snap-hooks/3795) snapcraft requires hooks to be named to certain keywords it shouldn't care about files that aren't named that way. [1] https://github.com/Lin-Buo-Ren/snapcrafters-template-plus/tree/master/snap/hooks

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 24.5
Staleness: 90
Complexity: 30
Confidence: 55
Support Request: 15
needs triage Snapcraft build fails when snap/hooks/ contains a non-executable README.md used to document sub-dirs; reporter argues only known hook names should be validated. Open ~8 years, zero comments, no labels or maintainer engagement.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 85
Support Request: 10
close stale Snapcraft incorrectly flags a non-executable README.md file as a hook, causing build failures. Issue remains open with no maintainer response or labels after nearly 8 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale Snapcraft incorrectly flags non-executable files like README.md in the hooks directory as invalid hooks. The issue lacks labels, has zero comments, and has been inactive for nearly eight years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 80
Support Request: 10
close stale Snapcraft incorrectly flags a non-executable README.md in the snap/hooks directory as a required executable hook. Open for ~7.8 years with no maintainer response or activity for ~5.8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale Snapcraft incorrectly flags non-executable files like README.md in the hooks directory as invalid hooks. The report is open, unassigned, and inactive for over five years with zero comments. Needs triage and a fix to the hook validation logic.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: snapcraft (launchpad)#1845276 (confidence 70%)

    Same core complaint: snapcraft shouldn't complain about snap/README.md / non-executable hook files; both are open with no resolution.

Related issues

Issue Project State Summary Similarity
#1845276 snapcraft shouldn't complain about snap/README.md snapcraft (launchpad) open Request to stop snapcraft warning about snap/README.md as a non-snapcraft path so docs can live in the snap/ dir. 7 years old, zero comments, no labels or maintainer response; the warning is intentional and already documents the snap/local/ workaround.
78%
#1746403 snapcraft fails to find hooks if ran from snap directory. snapcraft (launchpad) open 2017 report: running snapcraft from the snap/ directory builds without error but omits hooks, causing confusing install failures; proposes enforcing project-root CWD. No maintainer activity in 8+ years; likely obsolete after the core22 rewrite.
73%