← Back to issue list

plugins: add plugin environment validation (CRAFT-611)

View original Github issue

Metadata

Project
craft-parts
Number
#150
Type
pull request
State
merged
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #150 added plugin environment validation and integration tests. Changes landed in commit 9de49536 and were merged into main by 720c89ae.

Resolution: closed resolved

Reason: PR #150 was merged into main via commit 720c89ae. The change adds validator hooks so plugins can verify required build-environment elements before parts are built.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Plugins may require certain environment elements to be present in order to build a part, regardless of how these elements were installed on the system. For example, a compiler may have been installed from a deb package, a snap, built from sources or even built by a different part. This commit adds plugin environment validators, allowing plugins to verify if the system environment is correct before building a part. **Note to reviewers**: see the integration test for use cases. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #150 added plugin environment validation and integration tests. Changes landed in commit 9de49536 and were merged into main by 720c89ae.
stealth/space-bunny-alpha — closed resolved Merged PR #150 adds plugin environment validation (CRAFT-611), letting plugins verify required system elements before building parts. Includes integration tests.
qwen/qwen3.6-35b-a3b — — Added plugin environment validators to verify system requirements before building parts. Merged after reviewer approval and passing CI checks, modifying 14 files with 629 additions and 23 deletions.
qwen3.6-35b-a3b-mtp-q6 — — Merged plugin environment validators to verify system requirements before building parts. Reviewers approved the implementation and integrated it into the codebase.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#221 plugins: make plugin options available in validator craft-parts merged Merged in canonical/craft-parts#221 (c38160b7; implementation 822bd74d), exposing plugin option values to validator instances for environment validation.
70%