← Back to issue list

snapcraft traceback stat-ing symlink trying to enforce exec

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1816555
Type
issue
State
closed
Author
~adam-collard
Labels
—
Created
Updated
Closed

Current evaluation

Fixed executable-bit handling for symlinked hooks in merged PR snapcore/snapcraft#2478, commit 496ebba10; PR #2481 was also linked.

Resolution: closed resolved

Reason: Commit 496ebba10, titled “meta: handle symlinked hooks (#2478),” added the resolving fix. The maintainer also linked snapcore/snapcraft#2481 alongside it.

Evaluated by: mr-cal-bot

No scores available.

Issue body

https://paste.ubuntu.com/p/55kHXhFf79/ As per the above traceback FileNotFoundError: [Errno 2] No such file or directory: '/workspace/snapstore-snap/snapstore-snap-junit-nightly-tests/work/prime/meta/hooks/install' Our nightly builds of a snap hit an issue trying to enforce the executable bit of a hook which is a symlink.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed executable-bit handling for symlinked hooks in merged PR snapcore/snapcraft#2478, commit 496ebba10; PR #2481 was also linked.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #2478 ("meta: handle symlinked hooks"), commit 496ebba10, cherry-picked to2.7.x via #2481. It resolves symlinks before enforcing the exec bit, avoiding FileNotFoundError on symlinked hooks.
stealth/space-bunny-alpha — closed resolved Fixed in snapcraft#2478 via commit 496ebba10, adding handling for symlinked hooks so executable-permission enforcement no longer crashes.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Snapcraft crashed with a FileNotFoundError when enforcing executable permissions on a symlinked hook. Zero comments were posted, indicating the report was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without documented resolution. Likely abandoned. Reported a snapcraft crash when enforcing executable permissions on a symlink hook, triggering a FileNotFoundError.

Update history

Date Change
created

Related work

Related issues

Issue Project State Summary Similarity
#1812003 hooks should be made executable instead of erroring out snapcraft (launchpad) closed Fixed by merged PR snapcore/snapcraft#2440 (commit c2f5a0dc0), which packages recognized hooks as executable instead of rejecting non-executable source files.
75%