fix: use source-subdir in go-use plugin
Metadata
Current evaluation
Merged fix updating the go-use plugin to respect source-subdir. Previously, the plugin ignored this setting, defaulting to the repository root and breaking Go modules in subdirectories. Resolves #978 after CI and approvals.
Suggested action: —
No scores available.
Issue body
It's possible, and somewhat common, for a go module to be defined inside a repo's subdir; in this case we can define source-subdir, but the go-use plugin needs to use this - otherwise the repo root gets used.
Fixes #978
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged fix updating the go-use plugin to respect source-subdir. Previously, the plugin ignored this setting, defaulting to the repository root and breaking Go modules in subdirectories. Resolves #978 after CI and approvals. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for the go-use plugin to correctly apply the source-subdir configuration instead of defaulting to the repository root. Resolves #978. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1687 fix(plugins/qmake): use source-subdir if declared | craft-parts | merged | Merged qmake plugin fix to correctly resolve qmake-project-file paths when source-subdir is declared. Adjusts path resolution relative to source or subdirectory to prevent breaking configs. Approved by three reviewers and closes #950. | |
| #978 `go-use` plugin doesn't respect `source-subdir` | craft-parts | closed | Closed without resolution. Only an automated Jira sync comment exists, with no developer response or code changes, indicating the bug was deferred or abandoned. |