project loader: remove remote parts support for bases
Metadata
Current evaluation
Merged removal of remote parts support for bases. The project loader now errors on undefined parts or missing plugins. CLI commands update, search, and define were removed. Approved and merged after passing CI.
Suggested action: —
No scores available.
Issue body
When using bases, the project loader should error out on parts
that attempt to use after with a part not locally defined or a
part definition which does not specify a plugin.
Additionally, given the re-exec logic, remove update, search and
define from the cli.
LP: #1794805
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [ ] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged removal of remote parts support for bases. The project loader now errors on undefined parts or missing plugins. CLI commands update, search, and define were removed. Approved and merged after passing CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to master as PR #2304. The project loader now errors on remote parts and missing plugin definitions for bases. CLI commands update, search, and define were removed due to re-exec logic. Codecov confirmed 100% diff coverage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. The project loader now rejects remote parts when using bases and removes the update, search, and define CLI commands to align with re-exec logic. Resolves LP: #1794805. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2153 project_loader: allow loading null parts | snapcraft | merged | Merged PR #2153 fixes LP: #1772027 by allowing the project loader to accept remote parts without requiring the after directive. Approved and merged by maintainer kyrofa with 100% diff coverage. | |
| #1504 project loader: refactor into package | snapcraft | merged | Merged a refactor moving the project loader into a dedicated package, relocating PartsConfig logic and the schema validator, and introducing a base error class. Modified 16 files to advance issue #1492. | |
| #2329 pluginhandler: remove legacy plugin loading without project | snapcraft | merged | Merged pull request removing legacy plugin loading logic without project support, aligning with the move to bases. Approved by maintainer, passed CI, and successfully integrated into the codebase. |