fix: docs/CLAUDE-AUTH-CONCURRENCY.md and smoke-init.sh reference credentials.json without leading dot (#680)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c8113633af
commit
de4a37b1fa
2 changed files with 6 additions and 6 deletions
|
|
@ -40,7 +40,7 @@ serialization — no external wrapper needed.
|
|||
Host filesystem:
|
||||
/var/lib/disinto/claude-shared/ ← CLAUDE_SHARED_DIR
|
||||
└── config/ ← CLAUDE_CONFIG_DIR
|
||||
├── credentials.json
|
||||
├── .credentials.json
|
||||
├── settings.json
|
||||
└── ...
|
||||
|
||||
|
|
|
|||
|
|
@ -333,12 +333,12 @@ fi
|
|||
# Sub-test 2: migration (pre-existing ~/.claude with content)
|
||||
rm -rf "$HOME/.claude" "$CLAUDE_SHARED_DIR"
|
||||
mkdir -p "$HOME/.claude"
|
||||
echo "test-token" > "$HOME/.claude/credentials.json"
|
||||
echo "test-token" > "$HOME/.claude/.credentials.json"
|
||||
setup_claude_config_dir "true"
|
||||
if [ -f "$CLAUDE_CONFIG_DIR/credentials.json" ]; then
|
||||
pass "Migration: credentials.json moved to CLAUDE_CONFIG_DIR"
|
||||
if [ -f "$CLAUDE_CONFIG_DIR/.credentials.json" ]; then
|
||||
pass "Migration: .credentials.json moved to CLAUDE_CONFIG_DIR"
|
||||
else
|
||||
fail "Migration: credentials.json not found in CLAUDE_CONFIG_DIR"
|
||||
fail "Migration: .credentials.json not found in CLAUDE_CONFIG_DIR"
|
||||
fi
|
||||
if [ -L "$HOME/.claude" ]; then
|
||||
link_target=$(readlink -f "$HOME/.claude")
|
||||
|
|
@ -354,7 +354,7 @@ fi
|
|||
|
||||
# Sub-test 3: idempotency (re-run after migration)
|
||||
setup_claude_config_dir "true"
|
||||
if [ -L "$HOME/.claude" ] && [ -f "$CLAUDE_CONFIG_DIR/credentials.json" ]; then
|
||||
if [ -L "$HOME/.claude" ] && [ -f "$CLAUDE_CONFIG_DIR/.credentials.json" ]; then
|
||||
pass "Idempotency: re-run is a no-op"
|
||||
else
|
||||
fail "Idempotency: re-run broke the layout"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue