carlos / platform Public

pathmapcheck: open the control bucket with NewDeploymentS3StoreIn

TestS3StoreOpenersClassified flagged the plain NewS3StoreIn in
pathmapcheck's main. The bucket is the deployment's control bucket, so
the deployment opener is the right one. It differs only in enabling the
change index, which bumps control/changes.json after a Put or Delete;
this tool only lists and gets, so nothing it does triggers a bump and its
reads are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 731279d3567332d6f3eb70cbe7c32f44d15b0674 parent d68a410
1 file changed, +3 −1
  • scripts/pathmapcheck/main.go +3 −1
diff --git a/scripts/pathmapcheck/main.go b/scripts/pathmapcheck/main.go
index 06db4407b..89bf0899d 100644
--- a/scripts/pathmapcheck/main.go
+++ b/scripts/pathmapcheck/main.go
@@ -266,7 +266,9 @@ func main() {
os.Exit(2)
}
ctx := context.Background()
- s, err := release.NewS3StoreIn(ctx, *bucket, *region)
+ // The deployment bucket's opener: its change index only bumps after a
+ // mutation, and this tool only lists and gets, so it never fires.
+ s, err := release.NewDeploymentS3StoreIn(ctx, *bucket, *region)
if err != nil {
fmt.Fprintf(os.Stderr, "pathmapcheck: open %s: %v\n", *bucket, err)
os.Exit(1)