winglang/wing

If `--values FILE` is not provided, the `WING_VALUES_FILE` variable is not considered `nil`

Open

#4982 aperta il 17 nov 2023

Vedi su GitHub
 (3 commenti) (0 reazioni) (1 assegnatario)TypeScript (214 fork)github user discovery
good first issue⌨️ cli🐛 bug

Metriche repository

Star
 (5385 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I tried this:

bring util;

if let x = util.tryEnv("WING_VALUES_FILE") {
  log(x);
}

This happened:

Prints undefined

I expected this:

Not to print anything if there I didn't specify a values file.

Is there a workaround?

No response

Anything else?

No response

Wing Version

No response

Node.js Version

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.

Guida contributor