Skip to content

← All questions

Does ${VAR} in a CSV dataset resolve from .env.staging, or only from the shell?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Our data/common/users.csv has a password column holding ${TEST_MEMBER_PASSWORD} so the value is not in the repo. It works on my machine, where the variable is exported. On a colleague's machine, where it is only in projects/demo-shop/.env.staging, the logins fail — and not with a config error, just a failed login.

Is the dotenv layer supposed to reach dataset rows, or is the shell the only source there?

3 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related