Skip to content

Build sandfs in: no sandfs to install - #4

Merged
lydakis merged 2 commits into
mainfrom
claude/project-thread-wdmsae
Oct 26, 2026
Merged

lydakis merged 2 commits into
mainfrom
claude/project-thread-wdmsae

Conversation

@lydakis

@lydakis lydakis commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Graft now calls the sandfs library (lydakis/sandfs#167, merged) instead of running the sandfs command, so cargo install --git https://github.com/lydakis/graft is all it takes.

What changes

  • src/tools.rs: sandfs() returns a sandfs::Home; mount, fork and copy_changes are small wrappers over its methods. changes and mounted read typed results (Changes, workspaces()) instead of parsing printed lines. sync reads the files changed on both sides from Updated::both.
  • main calls sandfs::handle_relaunch(&["sandfs"]) first. The mount process is gft itself, run again as gft sandfs daemon --serve; git's file monitor in a mount runs gft sandfs git-fsmonitor.
  • Workspaces stay in sandfs's usual home, so a sandfs command, if installed, still lists them.
  • GRAFT_SANDFS is gone. The tests need only a mount (GRAFT_REQUIRE_MOUNT, was GRAFT_REQUIRE_SANDFS), and clean up through sandfs::Home::at. CI no longer installs sandfs.
  • sandfs is a git dependency on main until the library is released on crates.io.

Tests

cargo fmt, clippy -D warnings and cargo test with GRAFT_REQUIRE_MOUNT=1, TMPDIR on btrfs, and no sandfs on the PATH: 10 unit tests and both workflow tests pass, against sandfs main (3fefc8a).

🤖 Generated with Claude Code

https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq

Graft calls the sandfs library instead of running the `sandfs` command, so
installing `gft` is all it takes. Mounts are served by `gft` itself, run again
as `gft sandfs daemon`. `GRAFT_SANDFS` goes, and the tests and CI need only a
mount.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T03:22:20.380129Z d899545 New commits
🔒 Security Review ✅ Completed 2026-10-26T03:23:53.189954Z d899545 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lydakis
lydakis merged commit 32eac6a into main Oct 26, 2026
2 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.

2 participants