Skip to content

fix(ci): gcloud storage rsync with correct delete flag - #152

Merged
pkieltyka merged 1 commit into
masterfrom
fix/gcs-sync-gcloud
Aug 18, 2026
Merged

fix(ci): gcloud storage rsync with correct delete flag#152
pkieltyka merged 1 commit into
masterfrom
fix/gcs-sync-gcloud

Conversation

@pkieltyka

Copy link
Copy Markdown
Member

Turns out gcloud storage rsync does support destination deletion — the flag is --delete-unmatched-destination-objects (not --delete).

  • Reverts from the gsutil workaround (which hit an unrelated urllib3 2.x incompatibility with gsutil's HTTP layer) back to the official gcloud CLI
  • Syncs ./index/gs://token-directory-index/index/ with --recursive --delete-unmatched-destination-objects (mirror semantics: removes remote objects no longer in the repo)
  • Verified flag exists in the installed gcloud: gcloud storage rsync --help lists --delete-unmatched-destination-objects

Also confirmed from the official docs: https://cloud.google.com/sdk/gcloud/reference/storage/rsync

@pkieltyka
pkieltyka merged commit 4909e93 into master Aug 18, 2026
7 checks passed
@pkieltyka
pkieltyka deleted the fix/gcs-sync-gcloud branch August 18, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant