[deps] entries now resolve to fetched, locked checkouts and compile as module roots. - resolve_deps (driver): .wo-deps/<name>/ cache beside wo.toml, wo.lock pinning name -> commit SHA. Cold+unlocked: clone at the manifest rev, record HEAD. Cold+locked: clone and checkout the LOCKED sha — a moved tag cannot change the build. Warm+locked: HEAD==lock -> zero network. Divergence is WO-E106 "lock drift" naming both SHAs and pointing at --update-deps; every git failure (missing binary, bad URL, bad rev, missing locked commit) is WO-E106 naming the dep and step. Guard rails: fetched dep must be a writeonce project; a dep with its own [deps] is refused (flat-only); dep name colliding with a local module dir is WO-E107. All git via the git binary (Sys.command; output reads through a temp file) — no network code in the compiler. Full clone, not --depth 1 (a locked SHA must be reachable regardless of tag movement) — recorded deviation from the plan's clone sketch. - woc --update-deps <dir>: re-fetch at manifest revs, rewrite the lock. - Multi-root compile: compile_image gains ~deps; app files first then deps sorted by name; module_of_multi maps a dep file to `<name>` / `<name>/<sub>`, so existing use/pub/collision machinery works across the boundary unchanged. The app root's walk skips .wo-deps via the existing dot-rule. - Entry restriction: Emit.emit gains ?entry_ok (default true — test helpers untouched); the driver excludes dep files, so a dependency's fn main is never the entry. Verified end to end against local file:// remotes: cold fetch + lock; `use niceframework` + `use niceframework/strutil` build and run; offline rebuild with the remote deleted; moved tag -> cold rebuild stays at the locked SHA; --update-deps follows the tag and rewrites the lock; cache/lock drift, transitive [deps], and name collision each produce their named diagnostic; the dep's fn main (returning 99) never becomes the entry. woc-test 540/0; oop-e2e 87/0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
105 lines
4 KiB
Text
105 lines
4 KiB
Text
# Cargo build artifacts
|
|
/target
|
|
|
|
# `woc .` manifest builds (wo.toml [build] target)
|
|
/docs/examples/log-watcher/target
|
|
/docs/examples/employee/target
|
|
|
|
# Rust runtime (crates/rt/): compiled binary + build artifacts
|
|
/crates/rt/target
|
|
/crates/rt/Cargo.lock
|
|
|
|
# C++ prototype build output
|
|
/prototypes/*/build
|
|
|
|
# OCaml/dune build artifacts (compiler/, the woc compiler front)
|
|
/compiler/_build
|
|
|
|
# C runtime (runtime/): compiled binary + WAL/snapshot data.
|
|
# `just rt-c-demo` and the default WO_DATA write ./wo-data at the repo root.
|
|
/runtime/wo-rt
|
|
/wo-data
|
|
/runtime/wo-data
|
|
# wovm VM core: binary + test build dir (ASan test binaries, smoke fixtures)
|
|
/runtime/wovm
|
|
/runtime/build/
|
|
|
|
# Runtime data directories for the sample projects.
|
|
# `wo.toml` points at `./data` which holds the per-project engine state.
|
|
/data
|
|
/docs/examples/*/data
|
|
|
|
# Legacy blog content and data (v1 writeonce storage)
|
|
/content
|
|
|
|
# Everything in .dev is developer-local (agent-tooling links, and the whole
|
|
# reference/ area: v1 archive, rest smoke files, study-tree symlinks —
|
|
# untracked 2026-08-08, disk-only; v1 history lives at the pre-move
|
|
# reference/ path). Only this README survives:
|
|
/.dev/*
|
|
!/.dev/README.md
|
|
/.dev/reference/
|
|
|
|
# Study-tree symlinks each contributor recreates per machine:
|
|
# ln -s <path-to-linux-src> .dev/reference/linux
|
|
# ln -s <path-to-go-src> .dev/reference/go
|
|
# ln -s <path-to-postgresql-src> .dev/reference/postgresql
|
|
# ln -s <path-to-mcp-python-sdk-src> .dev/reference/mcp-python-sdk
|
|
# (clone: https://github.com/modelcontextprotocol/python-sdk.git)
|
|
# ln -s <path-to-colibri> .dev/reference/colibri
|
|
# ln -s <path-to-llama.cpp> .dev/reference/llama-cpp
|
|
# ln -s <path-to-llvm-project> .dev/reference/llvm-project
|
|
# ln -s <path-to-dotnet-runtime> .dev/reference/dotnet-runtime
|
|
# (sparse clone -- only src/libraries/System.Linq:
|
|
# git clone --filter=blob:none --no-checkout --depth 1 \
|
|
# https://github.com/dotnet/runtime.git ~/projects/dotnet-runtime
|
|
# cd ~/projects/dotnet-runtime && git sparse-checkout init --cone \
|
|
# && git sparse-checkout set src/libraries/System.Linq && git checkout)
|
|
|
|
# Agent-orchestration scratch (SDD ledgers, briefs, review packages)
|
|
/.superpowers/
|
|
|
|
# Editor / OS noise — left broad on purpose so a contributor doesn't
|
|
# accidentally commit their IDE scratch or macOS metadata.
|
|
.DS_Store
|
|
*.swp
|
|
*.swo
|
|
/.idea/
|
|
/.vscode/*
|
|
!/.vscode/settings.json.example
|
|
!/.vscode/extensions.json
|
|
|
|
# Phase-F bench binaries (sources are committed; builds are not)
|
|
/runtime/bench/bench
|
|
/runtime/bench/goref/goref
|
|
prototypes/llama-moe-stream/
|
|
prototypes/wo-db/
|
|
|
|
# `tests/` un-ignored 2026-08-11 (plan 3 Task 2): the conformance corpus
|
|
# lands under `tests/corpus/` and must be tracked, not invisible to git
|
|
# the way the docs below already were once. See docs/plan/learnings.md,
|
|
# "check that a new document is actually tracked". No build artifacts
|
|
# land under `tests/` — the harness's own scratch files use mktemp
|
|
# outside the repo — so nothing needs re-ignoring beneath it.
|
|
|
|
# Documentation is version-controlled — repo doctrine puts docs under `docs/`,
|
|
# and ignoring them there defeats the point. These directories were ignored
|
|
# until 2026-08-10, which silently cost the blue-green vision doc (recovered
|
|
# from a session transcript) and left all seven forward-roadmap plan docs in
|
|
# `docs/superpowers/plans/` existing only on one developer's disk. The rules
|
|
# were also half-fiction: 33 of the 34 files under `docs/plan/exploration/`
|
|
# were already tracked, so the rule only swallowed *new* files — the worst
|
|
# possible failure mode. Do not re-add them.
|
|
# docs/examples/agent-loop/
|
|
# docs/examples/mcp-think/
|
|
# docs/plan/exploration/
|
|
# docs/plan/oop-vm/ (carries the .wob format + error-catalog contracts)
|
|
# docs/superpowers/plans/
|
|
|
|
# Python bytecode — the agent-loop / mcp-think samples are Python, and
|
|
# un-ignoring their directories above exposed these.
|
|
__pycache__/
|
|
*.pyc
|
|
dist/
|
|
docs/examples/*/target/
|
|
.wo-deps/
|