Skip to content
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

teller env produces unquoted variable values that have whitespace characters #240

Closed
zshehov opened this issue Feb 22, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@zshehov
Copy link

zshehov commented Feb 22, 2024

Expected Behavior

Variables containing whitespace characters should be quoted on env generation

Current Behavior

Variables containing whitespace characters are produced without quotes in the resulting env file after teller env. Also, variables coming from a dotenv provider that already have quotes have their quotes removed.

Possible Solution

Persist already quoted variable values in the dotenv provider + Scan for whitespaces and quote values for teller env output

Steps to Reproduce

  1. Create a source dotenv .env.source file with a variable including whitespace: TEST="two words"
  2. Create a .teller.yml file with dotenv provider that has
env_sync:
      path: .env.source
  1. Call teller env
  2. The produced output has TEST=two words

Specifications

  • Version:
    Teller 1.5.6
    Revision 7b714bc, date: 2022-10-13T08:02:44Z
  • Platform: MacOS arm64
@zshehov zshehov added the bug Something isn't working label Feb 22, 2024
@jondot
Copy link
Contributor

jondot commented May 15, 2024

Thanks, should be fixed with Teller 2.0 now

@jondot jondot closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants