Skip to content

docs(go): document pre_run field in test provider_state struct form#39

Merged
raphaelvigee merged 1 commit into
mainfrom
claude/laughing-lovelace-px6c2f
Jun 21, 2026
Merged

docs(go): document pre_run field in test provider_state struct form#39
raphaelvigee merged 1 commit into
mainfrom
claude/laughing-lovelace-px6c2f

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member

Summary\n\nDocuments the pre_run field added to the Go plugin's test struct form in hephbuild/heph#111.\n\n- website/docs/plugins/go.md — adds pre_run to the "Test environment" section: description update, code example, and field table.\n- plugins/heph-go/skills/heph-go/references/go-plugin.md — mirrors the same change in the Claude Code reference twin (field table, code example, and Recognized keys description).\n\n### What pre_run does\n\nWhen set in a test = {...} provider state, pre_run is a list of shell lines that run before the test binary. An empty list (the default) keeps the existing exec driver; a non-empty list switches the test/xtest targets to the bash driver:\n\npython title=\"BUILD\"\nprovider_state(\n provider = \"go\",\n test = {\n \"pre_run\": [\"export FOO=bar\", \"mkdir -p ./scratch\"],\n },\n)\n\n\nLike other struct-form keys, it is package-scoped (does not inherit to descendants) and affects the cache key.\n\n## Triggered by\n\nhephbuild/heph#111 — feat(plugin-go): test pre_run shell lines via provider state"


Generated by Claude Code

Adds pre_run to the test struct form docs in both the main Go plugin page
and its Claude Code reference twin.

Triggered by hephbuild/heph#111 (feat(plugin-go): test pre_run shell lines via provider state)
@github-actions

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://3bdc2fdd.hephbuild.pages.dev
Commit 244e469

@raphaelvigee raphaelvigee merged commit e64eb73 into main Jun 21, 2026
3 checks passed
@raphaelvigee raphaelvigee deleted the claude/laughing-lovelace-px6c2f branch June 21, 2026 08:50
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.

1 participant