What's the proper way to set an array as an enviro...
# singer-tap-development
d
What's the proper way to set an array as an environment variable in bash? It looks like the sdk no longer supports
[]
syntax. Error is being thrown by the tap tests
Copy code
ValueError: A bracketed list was detected in the environment variable... This syntax is no longer supported. Please remove the brackets and try again.
e
The SDK should support a comma-separated, e.g.
MY_ENV_VAR='a,b,c'
d
Looks like the SDK and Meltano have different opinions on arrays. Meltano prefers
"['a','b','c']"
and the sdk only functions with what you suggested. Is that bug territory?
e
It's a very early change/decision in the SDK (see e66de5), so I'm not sure what the reasons were for it. But yeah there's definitely a mismatch and a surprise to users coming from Meltano: https://github.com/meltano/sdk/issues/1896