← Back to issue list

Part dependency names not validated

View original Github issue

Metadata

Project
craft-parts
Number
#539
Type
issue
State
closed
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Closed as stale without a documented fix; the linked Launchpad snapcraft bug #2033882 was also abandoned.

Resolution: closed stale

Reason: Closed as stale with no documented fix, PR, commit, or closing maintainer explanation. The linked Launchpad snapcraft#2033882 report was also abandoned.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description https://bugs.launchpad.net/snapcraft/+bug/2033882 When listing parts in the after keyword of a part, if the listed part doesn't exist, no error will show. In core20 it was showing an error but not in core22. I believe it should show an error to help developers with potential typos. ### To Reproduce The first build runs fine. The second build properly fails. ### part yaml ```shell name: my-snap-name base: core22 version: '0.1' summary: Single-line elevator pitch description: | This is my-snap's description. grade: devel confinement: devmode parts: my-part: plugin: nil override-build: | echo "hello" my-part2: after: [trololo] plugin: nil override-build: | echo "hello" ``` ### Relevant log output ```shell While the same example in core20 always gives: Failed to get part information: Cannot find the definition for part 'trololo', required by part 'my-part2'. Remote parts are not supported with bases, so make sure that this part is defined in the `snapcraft.yaml`. ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as stale without a documented fix; the linked Launchpad snapcraft bug #2033882 was also abandoned.
stealth/space-bunny-alpha — closed stale Missing `after` dependencies remained undetected on core22 first builds. Closed as stale without a documented fix; the linked Launchpad bug #2033882 was also abandoned.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Missing validation for non-existent parts in the after keyword caused silent failures instead of errors. No fix or merge details provided.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned. Validation for missing parts in the after keyword remains unimplemented.
qwen/qwen3.6-35b-a3b — — Abandoned. Reported missing validation for non-existent parts in the after keyword on core22, contrasting with core20 behavior.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution due to inactivity. The core22 validation gap for non-existent parts in the after keyword remains unfixed. No comments or patches were submitted.

Update history

No update history recorded yet.

Related work

Related issues

Issue Project State Summary Similarity
#1650686 Some symlinks not properly fixed up snapcraft (launchpad) closed Closed as stale in September 2017 after the reporter could not reproduce the problem; no Snapcraft fix was identified.
74%
#1910298 ~/snap directory should be o0700 snapcraft (launchpad) closed Closed as stale without a final documented fix; snapcraft-desktop-helpers PR #218 was merged, while broader snapd remediation remained in PRs #9897 and #10992.
72%