Skip to content

docs: state when Zig named modules resolve strong - #97

Merged
magicdrive merged 1 commit into
mainfrom
docs/zig-readme-closed-builds
Oct 28, 2026
Merged

magicdrive merged 1 commit into
mainfrom
docs/zig-readme-closed-builds

Conversation

@magicdrive

Copy link
Copy Markdown
Owner

Summary

Clarify in the README language table when Zig named modules resolve as strong.

The table said Ark resolves named modules "by the importing module's import table as a build.zig states it (strong)". Since #95, a binding a build.zig states counts only when every build.zig of the repository is closed — Ark can follow all of its code (no dependency, no build helper file, no ZON import, nothing it does not model) — and the binding is the only one. Otherwise every Zig import is a candidate. Without the condition, the row read as if named modules were strong in general, which they are not in most real projects.

Changes

  • README.md: the Zig row states the condition, says that other builds make every import a candidate, and links to the Zig section of docs/language-support.md.
  • README_ja.md: the same in Japanese.

No code change. docs/language-support.md and docs/development/zig.md already describe the rule in full.

Verification

  • go test ./, the packages whose tests read the READMEs (docs_test.go, internal/mcp, internal/commandline, internal/syntax, internal/libgitignore, tests/integration): pass.
  • make fmt-check: pass.
  • The link target docs/language-support.md#zig exists (## Zig).

The language table said named modules resolve "(strong)" as a build.zig
states it, without the condition the release adds: a binding counts only
when every build.zig of the repository is closed (Ark can follow all of
its code) and the binding is the only one; otherwise every import is a
candidate. Say so in README.md and README_ja.md, and link to the Zig
section of the language support page, which has the details.
@magicdrive
magicdrive merged commit 7c88563 into main Oct 28, 2026
54 of 56 checks passed
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