-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Legacy Env name
computed on publish
#672
Comments
Not sure I understand exactly. Could you show what wrangler.toml looks like, and what command you run? |
command: Publish name = "my-worker"
[[ env.staging ]]
name = "my-worker-staging" The published Worker for staging will be called |
Ah ok I see. Yeah, if an environment has an explicit name, then we shouldn't add an environment identifier to it. |
Capturing from offline discussion: There is a weird case if the user provides the It is not 100% clear what should be the correct behaviour. Note that Wrangler 1 does not support the We have decided, initially, to disallow this combination - |
+1. I assume this would be an extremely rare combo anyway. |
…related CLI flags 1. When in Legacy environment mode we should not compute name field if specified in an environment. 2. Throw an Error when `--env` and `--name` are used together in Legacy Environment, except for Secrets & Tail which are using a special case `getLegacyScriptName` for parity with Wrangler1 3. Started the refactor for args being utilized at the Config level, currently checking for Legacy Environment only. Fixes #672
…related CLI flags 1. When in Legacy environment mode we should not compute name field if specified in an environment. 2. Throw an Error when `--env` and `--name` are used together in Legacy Environment, except for Secrets & Tail which are using a special case `getLegacyScriptName` for parity with Wrangler1 3. Started the refactor for args being utilized at the Config level, currently checking for Legacy Environment only. Fixes #672
…related CLI flags 1. When in Legacy environment mode we should not compute name field if specified in an environment. 2. Throw an Error when `--env` and `--name` are used together in Legacy Environment, except for Secrets & Tail which are using a special case `getLegacyScriptName` for parity with Wrangler1 3. Started the refactor for args being utilized at the Config level, currently checking for Legacy Environment only. Fixes #672
…related CLI flags (#680) 1. When in Legacy environment mode we should not compute name field if specified in an environment. 2. Throw an Error when `--env` and `--name` are used together in Legacy Environment, except for Secrets & Tail which are using a special case `getLegacyScriptName` for parity with Wrangler1 3. Started the refactor for args being utilized at the Config level, currently checking for Legacy Environment only. Fixes #672
What version of
Wrangler
are you using?0.0.22
What operating system are you using?
Mac
Describe the Bug
Legacy environment mode should not compute
name
fields in environments.result:
name = my-worker-staging
=> publishes asmy-worker-staging-staging
The text was updated successfully, but these errors were encountered: