workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: Non-interactive version of `versions deploy` still being interactive

Open josearmandojacq opened this issue 10 months ago • 2 comments

Which Cloudflare product(s) does this pertain to?

Wrangler core

What version(s) of the tool(s) are you using?

wrangler 3.52.0

What version of Node are you using?

22.0.0

What operating system and version are you using?

Mac Sonoma 14.4.1

Describe the Bug

Observed behavior

While running this command to enable gradual deployments and providing version ids and environment, we see that the command trigger the interactive version of it and list all worker versions and expect us to manually select versions

npx wrangler versions deploy version-id-1@50%  version-id-2@50% --experimental-versions --env dev

⛅️ wrangler 3.52.0
-------------------
╭ Deploy Worker Versions by splitting traffic between multiple versions
│
├ Your current deployment has 1 version(s):
│
│ (100%) version-id-1
│       Created:  2024-04-25T08:21:22.933291Z
│           Tag:  -
│       Message:  -
│
╰ Which version(s) do you want to deploy? Use SPACE to select/unselect version(s) and ENTER to submit.
  ● version-id-2
       Created:  2024-04-25T08:38:33.339743Z
           Tag:  -
       Message:  -

  ● version-id-3
       Created:  2024-04-25T08:21:22.933291Z
           Tag:  -
       Message:  -

Expected behavior

It triggers the gradual deployment without asking any input

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

josearmandojacq avatar Apr 25 '24 08:04 josearmandojacq