Skip to content

Standardizing Cargo command execution#284

Merged
ivila merged 2 commits intoapache:mainfrom
ivila:opt_cargo-optee_zc_0303
Mar 3, 2026
Merged

Standardizing Cargo command execution#284
ivila merged 2 commits intoapache:mainfrom
ivila:opt_cargo-optee_zc_0303

Conversation

@ivila
Copy link
Contributor

@ivila ivila commented Mar 3, 2026

Since cargo-optee is a Cargo plugin, it inherently requires a standard Cargo installation, which allows for a much cleaner execution model.

This PR streamlines the codebase by removing the legacy logic used to manually detect the Cargo binary and configure the PATH environment. Instead, it now follows standard plugin conventions by reading the CARGO environment variable, ensuring the tool consistently invokes the same binary that called it without requiring any manual environment setup from the user.

ivila added 2 commits March 3, 2026 11:25
Signed-off-by: ivila <390810839@qq.com>
Signed-off-by: ivila <390810839@qq.com>
@ivila ivila added the enhancement New feature or request label Mar 3, 2026
@ivila ivila merged commit 925a5d4 into apache:main Mar 3, 2026
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant