Skip to content

fix: fail init when storage bucket does not exist#22

Merged
tawanorg merged 1 commit intomainfrom
fix/init-bucket-validation
Apr 6, 2026
Merged

fix: fail init when storage bucket does not exist#22
tawanorg merged 1 commit intomainfrom
fix/init-bucket-validation

Conversation

@tawanorg
Copy link
Copy Markdown
Owner

@tawanorg tawanorg commented Apr 6, 2026

Summary

  • Init now fails with an actionable error when the configured bucket doesn't exist, instead of silently completing setup
  • BucketExists in R2/S3/GCS backends now properly distinguishes "not found" from other errors (auth failures, network issues) using typed error checks
  • Added unit tests for BucketExists error propagation behavior

Closes #21

Previously, `claude-sync init` would print a warning when the bucket
didn't exist but still report "Setup complete!", leading to a confusing
error on the subsequent `push`. Now init fails with an actionable error
message including links to create the bucket.

Also fixes BucketExists in all three storage backends (R2, S3, GCS) to
properly distinguish "bucket not found" from other errors (auth failures,
network issues) instead of silently swallowing all errors.

Closes #21
@tawanorg tawanorg merged commit 08397e9 into main Apr 6, 2026
2 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

🎉 This PR is included in version 1.8.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bucket not found

1 participant