From 3507914d340f74975a196ba349de7e722beeeae0 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Thu, 12 Nov 2026 10:15:57 -0800 Subject: [PATCH] fix(ci): Cache records its roots without asking R2 to create the bucket Every Cache push run on main fails in `just infra nix roots`: rclone's S3 backend tries CreateBucket before its first upload, and the cache-write R2 token, scoped to objects, gets 403 AccessDenied. Set no_check_bucket on the `r2:` remote so rclone writes the object directly. Co-Authored-By: Claude Opus 5.5 --- infra/nix/justfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infra/nix/justfile b/infra/nix/justfile index fa8b6dc9e00..3c96df60f2f 100644 --- a/infra/nix/justfile +++ b/infra/nix/justfile @@ -8,6 +8,9 @@ export RCLONE_CONFIG_R2_PROVIDER := "Cloudflare" export RCLONE_CONFIG_R2_ENDPOINT := "https://" + endpoint export RCLONE_CONFIG_R2_ACCESS_KEY_ID := env("AWS_ACCESS_KEY_ID", "") export RCLONE_CONFIG_R2_SECRET_ACCESS_KEY := env("AWS_SECRET_ACCESS_KEY", "") +# The CI token can write objects but not create buckets, and rclone's default +# upload first tries to create the bucket. +export RCLONE_CONFIG_R2_NO_CHECK_BUCKET := "true" # Deploy the nix.moq.dev worker. deploy: