Using `source-subdir` results in `No such file or directory`
Metadata
Current evaluation
source-subdir not respected in override-build commands; behavior now documented as intended in #1374, attempted fix #442 was reverted; user must cd into subdir manually in override-build
Suggested action: close not a bug
Reason: The docs (added in #1374) now explicitly state that override-build commands 'don't respect the source-subdir value and are executed on the source's root directory.' The attempted code fix (#442) was reverted, confirming this is by design. The user's workaround of cd-ing into the subdir is the correct approach.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
20.0
Staleness:
45
Complexity:
20
Confidence:
85
Support Request:
75
|
close not a bug | source-subdir not respected in override-build commands; behavior now documented as intended in #1374, attempted fix #442 was reverted; user must cd into subdir manually in override-build | |
| qwen/qwen3.6-35b-a3b |
Staleness:
92
Complexity:
45
Confidence:
75
Support Request:
5
|
needs triage | Bug report regarding source-subdir causing file-not-found errors during override-build. Unlabelled, inactive for over three years, with an internal Jira ticket but no maintainer resolution or follow-up. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
90
Complexity:
55
Confidence:
85
Support Request:
10
|
needs triage | Using source-subdir causes file not found errors during override-build. Reported ~3 years ago with no maintainer labels or resolution. Requires triage. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
80
Complexity:
40
Confidence:
75
Support Request:
10
|
needs triage | source-subdir causes override-build to fail with file not found errors as the working directory is not set to the subdirectory. Confirmed across plugins. Workaround requires manual directory changes. Internal ticket CRAFT-2956 created. Awaiting triage. |
Update history
| Date | Change |
|---|---|
| updated |
Related work
-
Related To:
craft-parts#1374
(confidence 90%)
Docs commit clarifying that override-build commands do not respect source-subdir, confirming the behavior is intentional
-
Related To:
craft-parts#442
(confidence 85%)
Attempted fix for subdir in pull and build steps that was subsequently reverted, confirming the original behavior is by design
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #967 `source-subdir` Not Working With `override-build` | rockcraft | closed | Closed without a code fix due to backward compatibility concerns, as correcting the behavior would break existing workarounds. Documentation updates will clarify the current limitation. |