diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-10-22 22:17:50 +0000 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-10-23 03:38:19 +0000 |
| commit | fa50d836bf7b0e2f08f493839dc2211ed6fb3bb9 (patch) | |
| tree | 83107c790f77def76f19d5d73ce1d89518776cb3 /tests/opencode/test-priority.sh | |
| parent | b58deb3b948d4c305feeac122700100419ee2777 (diff) | |
brainstorming: resolve a relative --project-dir before start-server.sh cdsfix/2524-relative-project-dir
start-server.sh built SESSION_DIR, PID_FILE, LOG_FILE and BRAINSTORM_DIR
from --project-dir as given, then ran `cd "$SCRIPT_DIR"` before using
them. A relative project dir like `.` was re-rooted at the scripts
directory, so the log and pid redirects failed and the server never
reported server-started: "Server failed to start within 5 seconds".
Resolve the project dir to an absolute path with `mkdir -p` + `cd && pwd`
right before deriving the session paths. mkdir -p keeps the existing
behavior of creating a project dir that doesn't exist yet (the Windows
lifecycle test relies on it), CDPATH is cleared so a relative name can't
resolve to some other directory, and `--` covers names starting with a
dash. Works on bash 3.2 without realpath or readlink -f.
Fixes #2524.
Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
Diffstat (limited to 'tests/opencode/test-priority.sh')
0 files changed, 0 insertions, 0 deletions
