diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-22 16:46:11 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-22 16:58:49 -0500 |
| commit | 6c504a7dbc1a53298f1107367927a98fa120c3d1 (patch) | |
| tree | c900a2b8c2858c32bc317b1725e1d1bc75b05db0 | |
| parent | 4b711255cd0eb5ec1a91105a10ec464e46e3589a (diff) | |
feat: implement t-1o2bxcq7999.4
I have completed the task.
1. **Analysis**: I located `Omni/Agent/start-worker.sh` and
identified the correct location to insert the `git sync` command
(before building `task` and `agent`). 2. **Implementation**: I
modified `Omni/Agent/start-worker.sh` to run `git sync` inside the
worker directory. 3. **Verification**:
* Ran `lint Omni/Agent/start-worker.sh` (passed). * Ran `bash
-n Omni/Agent/start-worker.sh` to check syntax (passed). *
Ran `bild --test Omni/Agent.hs` to ensure no regressions in the
associated Haskell code (passed).
The `start-worker.sh` script now syncs the worker repository before
building the necessary tools, ensuring the worker runs with the
latest code.
Files updated: - `Omni/Agent/start-worker.sh`
| -rwxr-xr-x | Omni/Agent/start-worker.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Omni/Agent/start-worker.sh b/Omni/Agent/start-worker.sh index 310ca56..457c83c 100755 --- a/Omni/Agent/start-worker.sh +++ b/Omni/Agent/start-worker.sh @@ -37,6 +37,12 @@ fi # Ensure worker has local task and agent binaries mkdir -p "$WORKER_PATH/_/bin" +echo "Syncing worker repo..." +if ! (cd "$WORKER_PATH" && git sync); then + echo "Error: Failed to run 'git sync' in worker directory." + exit 1 +fi + echo "Building 'task' in worker..." if ! (cd "$WORKER_PATH" && bild Omni/Task.hs); then echo "Error: Failed to build 'task' in worker directory." |
