Skip to content

docs: document per-target remote cache exclusion (cache.remote)#38

Open
raphaelvigee wants to merge 1 commit into
mainfrom
claude/laughing-lovelace-nr66kv
Open

docs: document per-target remote cache exclusion (cache.remote)#38
raphaelvigee wants to merge 1 commit into
mainfrom
claude/laughing-lovelace-nr66kv

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member

What changed

hephbuild/heph#108 fixed a bug where the engine ignored cache.remote_enabled when deciding to push or pull from a remote cache. The cache = {"remote": False} option existed in the exec driver spec and was actively used by the nix driver, but the engine never read the flag — so nix wrapper artifacts (which embed absolute /nix/store paths) were uploaded and pulled across machines anyway, causing exit 127 failures.

Now that the fix is in, document the feature properly:

website/docs/guides/remote-cache.md — new "Excluding targets from the remote cache" section explaining when and how to use cache = {"remote": False} on individual targets, with a concrete BUILD example.

website/docs/plugins/exec.md — updated the cache table row to clarify the bool vs. dict forms, and added a new "Cache control" section documenting the three dict keys (enabled, remote, history) with their defaults and a worked example of remote: False.

Related


Generated by Claude Code

Following hephbuild/heph#108 which fixed the engine to actually honor
the per-target `remote_enabled` flag. The cache={remote: False} option
existed and was set by the nix driver, but was silently ignored by the
engine. Now that it works, document it in both exec.md and remote-cache.md.
@github-actions

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://7b6ec866.hephbuild.pages.dev
Commit 1adf6e5

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