fix: docs/CLAUDE-AUTH-CONCURRENCY.md and smoke-init.sh reference credentials.json without leading dot (#680)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-11 22:41:34 +00:00
parent c8113633af
commit de4a37b1fa
2 changed files with 6 additions and 6 deletions

View file

@ -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
└── ...

View file

@ -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"