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
Add option to ignore process.env when on CI #410
Comments
Hey, thank you for opening this issue! 🙂 To boost priority on this issue and support open source please tip the team at https://issuehunt.io/r/goatandsheep/react-native-dotenv/issues/410 |
What are you using Also are you running multiple tests in the same script? I wonder if this is a caching problem. |
The weird thing is that before the upgrade everything was working, the upgrade introduced a lot of breaking changes. Our In our case we saw the CI environment variables taking precedence over the loaded Additionally, I had tested setting |
What happens if you delete the CI environment variables? Are you able to do that without messing up the builds? |
We aren't able to remove the variables being overridden. These values are secrets hence the But, what you're asking about removing the value from the CI. That will allow the |
I think there's already a way to make sure that we don't import the local variables. Let me check |
Can you set the necessary variables to |
@lmcjt37 I am hesitant to add this not only because it encourages a bad practice but because your context implies you're likely using this library in a dangerous way. You should have |
I'm happy to close this. We have since refactored our pipeline and context variables. So it's likely this isn't an issue any longer. I will retest without our patch to confirm. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Originally opened by @lmcjt37
The text was updated successfully, but these errors were encountered: