Skip to content

fix(deploy): read Cloudflare versions that have no bindings - #458

Merged
Brooooooklyn merged 3 commits into
voidzero-dev:mainfrom
aayushbtw:fix/version-without-bindings
Oct 18, 2026
Merged

Brooooooklyn merged 3 commits into
voidzero-dev:mainfrom
aayushbtw:fix/version-without-bindings

Conversation

@aayushbtw

@aayushbtw aayushbtw commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #457.

cf workers versions get leaves out bindings for a version that has none. The versions.view operation treated that as an unreadable version, so if the Worker's newest version had no bindings, every later void deploy --platform cloudflare stopped at "could not verify which Worker Version would supply inherited secrets".

A missing bindings now reads as an empty list. A bindings value that isn't an array is still rejected.

  • Unit test in cf-version-runner.test.ts. The file passes (75 tests), as do lint and typecheck for packages/void.
  • Checked against a real Worker: with the same change applied as a patch to void 1.1.11, the deploy that was failing went through.

Maintainer follow-up

  • Rebased onto main.
  • The code comment now names Cloudflare, not cf. cf workers versions get prints the API response unchanged, so the API itself leaves out bindings.
  • Checked the other strict bindings checks:
    • The pinned-secret uploader (cf-version-api.ts) only runs when the live version has secrets, so its bindings list is always there.
    • The platform installer's versions.view (cloudflare-operation-process.ts) reads platform Workers, which always have bindings. Left as is.
  • The new test fails without the fix and passes with it.

🤖 Generated with Claude Code

aayushbtw and others added 2 commits October 18, 2026 14:56
`cf workers versions get` prints the API response unchanged, so the
field is missing from Cloudflare's own response.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Brooooooklyn
Brooooooklyn force-pushed the fix/version-without-bindings branch from 366c3ab to db436cb Compare October 18, 2026 07:06
@Brooooooklyn

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T07:17:01.812133Z d1f437e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db436cb92a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/void/src/cli/cf-version-runner.ts Outdated
Only a missing `bindings` field means "no bindings". A `null` value is
malformed and must not pass as proof that the version has no secrets.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Brooooooklyn
Brooooooklyn merged commit 5bf1163 into voidzero-dev:main Oct 18, 2026
18 checks passed
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.

Cloudflare deploy fails when the newest version has no bindings

2 participants