Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handling of plugin entrypoint string #626

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

j-lanson
Copy link
Collaborator

The existing code treated the entrypoint string as a PathBuf, when in reality it could be a cmdline string with spaces and arguments.

This PR updates the handling to reflect this, and also modifies the retrieve_local_plugin() behavior to only copy the plugin entrypoint binary if it is a path. For instance, if the entrypoint started as docker ..., we wouldn't copy the docker binary because does not exist as a path.

Also updated the warning in start_plugin() to warn if the binary component of entrypoint cannot be found with which.

@j-lanson j-lanson added the type: bug Something isn't working label Nov 14, 2024
@j-lanson j-lanson added this to the 3.8.0 milestone Nov 14, 2024
@j-lanson j-lanson self-assigned this Nov 14, 2024
@j-lanson j-lanson added the product: hc Relates to the core "hc" binary label Nov 14, 2024
Copy link
Contributor

@patrickjcasey patrickjcasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@patrickjcasey patrickjcasey merged commit 7883031 into main Nov 14, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: hc Relates to the core "hc" binary type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants