← Back to issue list

Change of behavior when priming hooks

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1905072
Type
issue
State
closed
Author
~alfonsosanchezbeato
Labels
Created
Updated
Closed

Current evaluation

Closed without resolution. Reported hooks overwritten with empty scripts during the prime stage in snapcraft 4.4.2. Likely abandoned due to the deprecated parts: hooks: syntax.

Suggested action:

No scores available.

Issue body

In a snap that includes hooks in the build in this (old) way: ... parts:   hooks:     plugin: dump     source: hooks     organize:       configure: meta/hooks/configure ... $ cat hooks/configure #!/bin/sh -ex # Copyright (C) 2016-2018 Canonical Ltd # . "$SNAP"/bin/snap-prop.sh ... After creating the snap, the hook is overwritten with an empty shell script: $ cat prime/meta/hooks/configure #!/bin/sh $ This is happening with snapcraft 4.4.2. Previous versions put the hook in the right place.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. Reported hooks overwritten with empty scripts during the prime stage in snapcraft 4.4.2. Likely abandoned due to the deprecated parts: hooks: syntax.
qwen/qwen3.6-35b-a3b Closed without comments. The report detailed hooks being overwritten with empty scripts during priming in snapcraft 4.4.2. Likely abandoned or resolved internally.
qwen3.6-35b-a3b-mtp-q6 Closed without comments. Reported hooks being overwritten with empty scripts during the prime stage in snapcraft 4.4.2. Likely abandoned or resolved in a subsequent release.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1865167 Removing a hook script and building, script still present snapcraft (launchpad) open Snapcraft retains a deleted snap/hooks script in the rebuilt snap because the stale copy in prime/ is never removed; a full clean is required. Open ~6.5 years with zero comments, no labels, and no maintainer response.
72%