Skip to content

docs: clarify glob() exclude resolves like pattern - #98

Merged
raphaelvigee merged 1 commit into
mainfrom
claude/eager-galileo-w2hqi0
Aug 17, 2026
Merged

docs: clarify glob() exclude resolves like pattern#98
raphaelvigee merged 1 commit into
mainfrom
claude/eager-galileo-w2hqi0

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member

Summary

hephbuild/heph PR #399 (commit 97c5f48) fixed a bug in the glob() BUILD-file builtin: exclude entries were previously passed through raw and matched against workspace-root-relative paths, so a package-relative exclude = ["vendor/**"] written inside //pkg silently matched nothing. It's now resolved exactly like pattern — package-relative by default, workspace-root-relative under abs = True.

This is a narrow breaking change to the BUILD-file Starlark API (per the heph PR's compatibility note: a workspace-rooted exclude written as a workaround now needs abs = True), so it's worth documenting explicitly rather than leaving it implied by the general path-resolution paragraph.

  • Added a clarifying note + example to website/docs/plugins/buildfile.md (the "Authoring BUILD files" section).
  • Mirrored the same note in the heph-expert Claude Code plugin's skill reference (plugins/heph-expert/skills/heph/references/authoring.md), per the reference-drift rule in this repo's CLAUDE.md.

Test plan

  • Not built locally (no build env in this session) — please confirm build/lint pass in CI.
  • Reviewed rendered Markdown by eye for formatting consistency with the surrounding page.

🤖 Generated with Claude Code


Generated by Claude Code

heph PR #399 (97c5f48) fixed glob() so exclude entries resolve
package-relative (or workspace-root-relative under abs=True) just
like pattern, instead of being passed through raw. Document the
resolved behavior in the buildfile guide and its heph-expert skill
reference twin.

Ref: hephbuild/heph#399
@github-actions

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://b5568665.hephbuild.pages.dev
Commit 22c47f6

@raphaelvigee
raphaelvigee merged commit 986aee7 into main Aug 17, 2026
3 checks passed
@raphaelvigee
raphaelvigee deleted the claude/eager-galileo-w2hqi0 branch August 17, 2026 08:26
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.

2 participants