Resolve the zig executable (imperative shell). One seam decides which
compiler every other namespace runs, in order: an explicit override, a
zig on PATH, then a pinned hermetic Zig under .clj-zig/zig/<version>/.
Preferring PATH means a developer who already has Zig sees no download;
the pinned fallback means a fresh machine still compiles on first use.
Resolve the `zig` executable (imperative shell). One seam decides which compiler every other namespace runs, in order: an explicit override, a `zig` on PATH, then a pinned hermetic Zig under `.clj-zig/zig/<version>/`. Preferring PATH means a developer who already has Zig sees no download; the pinned fallback means a fresh machine still compiles on first use.
(ensure-pinned!)Install the pinned hermetic Zig on first use and return its path. Prints one line to stderr on the initial fetch and reuses the install after.
Install the pinned hermetic Zig on first use and return its path. Prints one line to stderr on the initial fetch and reuses the install after.
(pinned-dir)The directory the pinned hermetic Zig installs into.
The directory the pinned hermetic Zig installs into.
The Zig release the bootstrap installs and the generated wrappers
assume. Part of the content hash through zig version.
The Zig release the bootstrap installs and the generated wrappers assume. Part of the content hash through `zig version`.
(zig-exe)The path to the zig executable to run: an explicit override, then a
zig on PATH, then the pinned hermetic Zig, installing it if needed.
The path to the `zig` executable to run: an explicit override, then a `zig` on PATH, then the pinned hermetic Zig, installing it if needed.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |