You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): honor XDG_CONFIG_HOME on Linux and clarify TOKSCALE_CONFIG_DIR docs
- Linux config resolution now flows through dirs::config_dir() instead
of hardcoding $HOME/.config, so users with a custom XDG_CONFIG_HOME
pointing the user config root elsewhere are no longer silently sent
to the wrong directory. macOS still overrides dirs::config_dir() to
reach $HOME/.config/tokscale, since dirs returns Application Support
there and the docs already promised .config.
- README env-var rows for TOKSCALE_CONFIG_DIR now mention star-cache.json
alongside settings.json (the override controls every file under the
config root, not just settings), soften 'absolute path' to 'absolute
path recommended; relative paths resolve against the process CWD'
matching what get_config_dir() actually accepts, and explicitly note
the legacy macOS fallback is suppressed when the override is set.
- New regression test linux_honors_xdg_config_home_when_set proves the
XDG_CONFIG_HOME case. The existing Unix default test now also unsets
XDG_CONFIG_HOME so it stays hermetic regardless of the host shell.
Copy file name to clipboardExpand all lines: README.ko.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -498,7 +498,7 @@ Tokscale은 설정을 `~/.config/tokscale/settings.json`에 저장합니다:
498
498
| 변수 | 기본값 | 설명 |
499
499
|----------|---------|-------------|
500
500
|`TOKSCALE_NATIVE_TIMEOUT_MS`|`300000` (5분) |`nativeTimeoutMs` 설정 오버라이드 |
501
-
|`TOKSCALE_CONFIG_DIR`| unset | 설정 디렉토리(`settings.json` 위치)를 오버라이드합니다. 절대 경로. CI 샌드박스나 비기본 위치를 고정할 때 유용합니다. |
501
+
|`TOKSCALE_CONFIG_DIR`| unset | 설정 디렉토리(`settings.json`및 `star-cache.json`위치)를 오버라이드합니다. 절대 경로 권장; 상대 경로는 프로세스 CWD 기준으로 해석됩니다. CI 샌드박스나 비기본 위치를 고정할 때 유용합니다. 설정되면 tokscale은 macOS 레거시 경로(`~/Library/Application Support/tokscale/`)로 폴백하지 않습니다. |
|`TOKSCALE_EXTRA_DIRS`| unset | One-off extra session roots as `client:/abs/path,client:/abs/path`|
518
-
|`TOKSCALE_CONFIG_DIR`| unset | Overrides the config directory (where `settings.json`lives). Absolute path. Useful for CI sandboxes or pinning a non-default location. |
518
+
|`TOKSCALE_CONFIG_DIR`| unset | Overrides the config directory (where `settings.json`and `star-cache.json` live). Absolute path recommended; relative paths resolve against the process CWD. Useful for CI sandboxes or pinning a non-default location. When set, tokscale will not fall back to the legacy macOS `~/Library/Application Support/tokscale/` path. |
519
519
520
520
```bash
521
521
# Example: Increase timeout for very large datasets
0 commit comments