I am currently working on a project where I have set up dotenv-vault to handle my .env files. One of the environment variables in the .env file is GOOGLE_APPLICATION_CREDENTIALS=/workspaces/project-name/GOOGLE_APPLICATION_CREDENTIALS.json, which points to a service account key file (already added to .gitignore).
The issue I am facing is that when I run the command source .env in my terminal and echo the variable, it displays the correct path. However, when I run any Firebase command, which should recognize the presence of the file and use it for authentication against Google, it fails to authenticate.
Surprisingly, when I manually run the command export GOOGLE_APPLICATION_CREDENTIALS=/workspaces/project-name/GOOGLE_APPLICATION_CREDENTIALS.json, it works as expected. I'm curious to understand why this manual export works while sourcing the .env file does not.
Additionally, I'm using ZSH in my development container with the "dotenv" plugin, but it does not seem to populate the environment variables from the file into the terminal. I'm seeking insights on why this might be happening.
Any help or suggestions would be greatly appreciated.