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

Add polyglot-hooks to EXPERIMENTS.md #2169

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Conversation

moskyb
Copy link
Contributor

@moskyb moskyb commented Jun 26, 2023

We missed adding this in the original PR, whoops.

polyglot-hooks

Allows the agent to run hooks written in languages other than bash. This enables the agent to run hooks written in any language, as long as the language has a runtime available on the agent. In non-windows environments, polyglot hooks can be in interpreted languages, so long as they have a valid shebang, and the interpreter specified in the shebang is installed on the agent.

This experiment also allows the agent to run compiled binaries (such as those produced by Go, Rust, Zig, C et al.) as hooks, so long as they are executable.

Hooks are run in a subshell, so they can't modify the environment of the agent process. However, they can use the job-api to modify the environment of the job.

Status: Experimental while we try to cover the various corner cases. We'll probably promote this to non-experiment soon™️.

Copy link
Contributor

@DrJosh9000 DrJosh9000 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! 🌿

@moskyb moskyb enabled auto-merge June 26, 2023 03:19
@moskyb moskyb merged commit 24c5623 into main Jun 26, 2023
1 check passed
@moskyb moskyb deleted the polyglot-hooks-experiment branch June 26, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants