From 6fc9b1d9bdbb24fd4fc4a9fb0d112d1daf74ea88 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 10:55:18 +0000 Subject: [PATCH] docs: drop leading // from heph.core.pkg() example 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 Claude-Session: https://claude.ai/code/session_01H4ogQLEQwBri6r6y7VKv2M --- plugins/heph-expert/skills/heph/references/authoring.md | 2 +- website/docs/plugins/buildfile.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/heph-expert/skills/heph/references/authoring.md b/plugins/heph-expert/skills/heph/references/authoring.md index 33023a5..adfbd71 100644 --- a/plugins/heph-expert/skills/heph/references/authoring.md +++ b/plugins/heph-expert/skills/heph/references/authoring.md @@ -108,7 +108,7 @@ Available in every BUILD file; use it to vary targets by OS/arch. | `heph.core.arch()` | normalized arch | `amd64`, `arm64` | | `heph.core.os_raw()` | host OS identifier | `macos`, `linux` | | `heph.core.arch_raw()` | host arch identifier | `x86_64`, `aarch64` | -| `heph.core.pkg()` | current package path | `//tools/build` | +| `heph.core.pkg()` | current package path | `tools/build` | Normalized names match container-registry / distribution conventions; use the `*_raw()` forms when a tool or URL expects the host's exact identifiers. diff --git a/website/docs/plugins/buildfile.md b/website/docs/plugins/buildfile.md index acd4b3f..69c371e 100644 --- a/website/docs/plugins/buildfile.md +++ b/website/docs/plugins/buildfile.md @@ -221,7 +221,7 @@ host platform so targets can vary by operating system or CPU architecture. | `heph.core.arch()` | normalized architecture | `"amd64"`, `"arm64"` | | `heph.core.os_raw()` | host OS identifier | `"macos"`, `"linux"` | | `heph.core.arch_raw()` | host architecture identifier | `"x86_64"`, `"aarch64"` | -| `heph.core.pkg()` | current package path | `"//tools/build"` | +| `heph.core.pkg()` | current package path | `"tools/build"` | `heph.core.os()` and `heph.core.arch()` return normalized names that match the conventions used by container registries and most package distribution