fix: only precreate content plug targets
Metadata
Current evaluation
Merged a fix preventing errors during plug target precreation for specific formats like private plugs. Approved by two reviewers and integrated with 29 additions and 6 deletions across two files, resolving the reported issue.
Suggested action: —
No scores available.
Issue body
Fixes an issue where certain plug formats (such as the one below) would cause an error during the precreation of plug targets.
```yaml
plugs:
my-plug:
private: true
```
---
- [ ] I've followed the [contribution guidelines](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md).
- [ ] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [ ] I've successfully run `make lint && make test`.
- [ ] I've added or updated any relevant documentation.
- [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing.
- [ ] I've updated the relevant release notes.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix preventing errors during plug target precreation for specific formats like private plugs. Approved by two reviewers and integrated with 29 additions and 6 deletions across two files, resolving the reported issue. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix resolving an error during plug target precreation caused by specific plug formats like private: true. The change restricts precreation to valid targets, preventing runtime failures. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix resolving an error during plug target precreation caused by specific plug formats like private: true. The change restricts precreation to valid targets, preventing build failures. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3874 meta: fix content plug detection | snapcraft | merged | Merged a fix for snap metadata content plug detection that prevents type error failures, allowing empty definitions. Validation occurs during packaging. Approved by a reviewer, passed CI, and merged after branch targeting clarification. | |
| #6199 fix: create plug and layout files during pack | snapcraft | merged | Merged. Resolves #6122 by pre-creating plug and layout directories and files during the pack step for core26+ bases. Approved by three reviewers following CI validation and minor review adjustments. |