diff --git a/website/docs/plugins/buildfile.md b/website/docs/plugins/buildfile.md index b08e96b..1402057 100644 --- a/website/docs/plugins/buildfile.md +++ b/website/docs/plugins/buildfile.md @@ -303,3 +303,8 @@ load("//build/defs:go.star", "go_service") go_service(name = "api") ``` + +The path argument follows the same rules as `file()`/`glob()` above: `//pkg/...` +is workspace-root-relative, `./`/`../` is resolved against the current package, +and a path whose `..` segments would resolve outside the workspace root is an +error rather than being followed.