← 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 without resolution. Missing validation for non-existent parts in the after keyword caused silent failures instead of errors. No fix or merge details provided.

Suggested action:

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
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 issues

Issue Project State Summary Similarity
#1564607 Check for extra keywords used in parts snapcraft (launchpad) closed Closed without implementation. The maintainer requested graceful failure for extra keywords in parts to catch typos, but no fix, merge, or resolution was provided.
72%
#1799596 No error if `after` specifies part that doesn't exist snapcraft (launchpad) closed Closed without a fix or comments, indicating the bug was abandoned. Snapcraft continues to silently accept invalid after references to non-existent parts.
72%