docs: The code snippet for the `default-configure` hook is wrong
Metadata
Current evaluation
Closed and deferred to internal tracking via ticket SNAPCRAFT-1233. The documentation incorrectly duplicated the configure hook snippet for default-configure. No direct fix or merge was applied.
Suggested action: —
No scores available.
Issue body
The code snippet for the `default-configure` hook is a copy of the `configure`-hook. I think there was a mishap when copying this configuration over.
See the [old discourse post](https://forum.snapcraft.io/t/adding-snap-configuration/15246) as a comparison
---
*Reported from: https://documentation.ubuntu.com/snapcraft/stable/how-to/crafting/add-a-snap-configuration/*
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed and deferred to internal tracking via ticket SNAPCRAFT-1233. The documentation incorrectly duplicated the configure hook snippet for default-configure. No direct fix or merge was applied. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and internally tracked via Jira for documentation correction. The duplicate default-configure hook code snippet was identified as a copy-paste error, with contributors suggesting a simpler example for clarity. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and tracked internally for correction. Documentation error identified where the default-configure hook snippet incorrectly duplicated the configure hook code. Internal ticket SNAPCRAFT-1233 created to update the example. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and triaged. Tracked internally via Jira SNAPCRAFT-1233. No public fix or merge is linked. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without a public fix. The documentation error where the default-configure hook snippet incorrectly duplicated the configure hook was triaged and tracked via internal ticket SNAPCRAFT-1233. A simpler example was suggested but not implemented. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed documentation issue identifying an incorrect default-configure hook snippet that duplicated the configure hook. An internal ticket was created to correct the code and add a simpler example. No public fix was merged. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5833 docs: fix default-configure hook example | snapcraft | merged | Merged documentation fix replacing the default-configure hook example with the official forum version, resolving issue #5803. Approved by reviewers and passed CI checks. | |
| #182 Add a `configure` snap hook | imagecraft | closed | Closed without implementation. The enhancement to add a configure snap hook was logged as an internal Jira ticket and abandoned, with no code changes or documentation updates applied. |