Skip to content

docs: drop leading // from heph.core.pkg() example#40

Merged
raphaelvigee merged 1 commit into
mainfrom
claude/friendly-carson-pwap1s
Jun 21, 2026
Merged

docs: drop leading // from heph.core.pkg() example#40
raphaelvigee merged 1 commit into
mainfrom
claude/friendly-carson-pwap1s

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member

What

heph.core.pkg() is documented as returning the current package path, but the example value included a leading //:

  • website/docs/plugins/buildfile.md"//tools/build"
  • plugins/heph-expert/skills/heph/references/authoring.md//tools/build

Why

The Addresses reference (website/docs/reference/addresses.md) defines the terms precisely:

//lib/auth:lib
  └──┬──┘ └┬┘
  package  name
  • package — the workspace-relative directory, after the // (root package is the empty string, written //:name).
  • An address is the whole //-prefixed //package:name string.

So the // marks an address, not a package path. A package path is tools/build (or "" for root), never //tools/build. The example contradicted the repo's own definition.

This updates both the docs page and its reference twin together, per the reference-drift rule in CLAUDE.md.

Note

This fix is based on the repo's own internal definitions of "package" vs "address" — I wasn't able to reach the heph engine source from this environment to confirm the builtin's exact runtime string. If pkg() is actually intended to return the //-prefixed form, the wording "current package path" would be the thing to fix instead.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H4ogQLEQwBri6r6y7VKv2M


Generated by Claude Code

A package path is the workspace-relative directory after the //, as
defined in the Addresses reference (//package:name). The // marks an
address, not a package, so heph.core.pkg() returns "tools/build", not
"//tools/build". Fix the example in both the docs page and its reference
twin.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H4ogQLEQwBri6r6y7VKv2M
@raphaelvigee raphaelvigee enabled auto-merge (squash) June 21, 2026 10:56
@github-actions

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://c73db3ae.hephbuild.pages.dev
Commit 0c98563

@raphaelvigee raphaelvigee merged commit 837aeb6 into main Jun 21, 2026
3 checks passed
@raphaelvigee raphaelvigee deleted the claude/friendly-carson-pwap1s branch June 21, 2026 10:58
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