← Back to issue list

reactive_plugin: Inappropriate environment used when calling out to `charm` command

View original Github issue

Metadata

Project
charmcraft
Number
#870
Type
issue
State
closed
Author
fnordahl
Labels
Created
Updated
Closed

Current evaluation

Author retracted the report after verifying the environment was already properly sanitized to exclude the charmcraft snap's Python dependencies. No code changes were required, and the issue was closed as invalid.

Suggested action:

No scores available.

Issue body

When the reactive plugin calls out to the `charm build` command it does so with the environment of the `charmcraft` snap. As a consequence the Python interpreter and libraries in the `charmcraft` snap is used as a basis for building the reactive charm artifact. This is normally not what you would want, as part of building the charm is putting together a collection of wheels based on the Python version the tool is ran under. A sanitized environment should be provided when calling out to the `charm` command, where the charmcraft snap is removed from `PATH` and any other python-related environment variables cleaned out.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6 Author retracted the report after verifying the environment was already properly sanitized to exclude the charmcraft snap's Python dependencies. No code changes were required, and the issue was closed as invalid.
qwen/qwen3.6-35b-a3b Closed as a false alarm. The author confirmed the environment is already properly sanitized when invoking the charm command, requiring no changes.
qwen3.6-35b-a3b-mtp-q6 Author retracted the report after verifying the environment was already correctly pruned to exclude the charmcraft snap's Python interpreter. No code changes were required, and the issue was closed as a false positive.
qwen3.6-35b-a3b-mtp-q6 Author retracted the report after realizing the environment was already correctly sanitized for charm build calls. Closed as a false alarm with no code changes required.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#804 The reactive plugin is not correctly checking if `charm` failed charmcraft closed Incorrect charm return code validation in the reactive plugin was abandoned and closed without a fix. No pull requests or follow-up actions were recorded.
74%