Skip to content

[BUG]: varlock-wrangler passes invalid --keep-vars CLI flag to wrangler #701

Description

@wladpaiva

varlock version

@varlock/cloudflare-integration@1.1.1

Steps to reproduce

  1. Run vpx varlock-wrangler versions upload
  2. Note the invocation creates ... --keep-vars=false in the command
  3. Observe Wrangler outputs:
[ERROR] Unknown arguments: keep-vars, keepVars

What is expected?

The command should run without error -- only supported CLI arguments should be passed to wrangler.

What is actually happening?

varlock-wrangler.ts adds --keep-vars=false to the CLI invocation for wrangler versions upload, but Wrangler CLI does not support this flag. This causes an error:

[ERROR] Unknown arguments: keep-vars, keepVars

And the command fails.

System Info

System: macOS
Node.js: v18+
@varlock/cloudflare-integration@1.1.1
Wrangler version: 4.90.1

Any additional comments?

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions