From ecaa38d13e97f037c484bfb802312fe303bd5a73 Mon Sep 17 00:00:00 2001 From: Noah Horton Date: Mon, 20 Apr 2026 13:42:02 -0600 Subject: [PATCH] fix: shared_jobs sparse checkout excludes nix flake files Use --no-checkout + --no-cone mode so that only library/jobs/** is checked out, preventing root-level files like flake.nix and flake.lock from being materialized in the sparse clone. Co-Authored-By: Claude Opus 4.6 --- .../standard_jobs/deepwork_jobs/sync_shared_jobs.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/deepwork/standard_jobs/deepwork_jobs/sync_shared_jobs.md b/src/deepwork/standard_jobs/deepwork_jobs/sync_shared_jobs.md index 0f3dc73c..4ff3a83c 100644 --- a/src/deepwork/standard_jobs/deepwork_jobs/sync_shared_jobs.md +++ b/src/deepwork/standard_jobs/deepwork_jobs/sync_shared_jobs.md @@ -82,10 +82,11 @@ If the user selects "Custom local path", ask for the filesystem path to the Deep 1. If `.deepwork/upstream/` doesn't exist, create it: ```bash - git clone --sparse --filter=blob:none \ + git clone --no-checkout --filter=blob:none \ https://github.com/Unsupervisedcom/deepwork.git \ .deepwork/upstream - git -C .deepwork/upstream sparse-checkout set --cone library/jobs/ + git -C .deepwork/upstream sparse-checkout set --no-cone 'library/jobs/**' + git -C .deepwork/upstream checkout ``` 2. If it already exists, update it: ```bash @@ -124,10 +125,11 @@ The env var must be set so the DeepWork plugin discovers library jobs at runtime ```bash REPO_ROOT="$(git rev-parse --show-toplevel)" if [ ! -d "$REPO_ROOT/.deepwork/upstream" ]; then - git clone --sparse --filter=blob:none \ + git clone --no-checkout --filter=blob:none \ https://github.com/Unsupervisedcom/deepwork.git \ "$REPO_ROOT/.deepwork/upstream" - git -C "$REPO_ROOT/.deepwork/upstream" sparse-checkout set --cone library/jobs/ + git -C "$REPO_ROOT/.deepwork/upstream" sparse-checkout set --no-cone 'library/jobs/**' + git -C "$REPO_ROOT/.deepwork/upstream" checkout else git -C "$REPO_ROOT/.deepwork/upstream" pull --ff-only fi