-
Notifications
You must be signed in to change notification settings - Fork 85
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
EAS Build Is Not Parsing SECRETS File Correctly To Prebuild #2070
Comments
I've found the root cause. I didn't add .env to .easignore, and EAS was taking the environment variables from the .env file, instead of SECRETS. Having SECRETS loaded in the 'Spin up build environment' log doesn't mean the build is using them. There appears to be a bug in the 'Read app config' log. The SECRETS env variables are plugged in the app config, but the build process is actually taking the env variables from .env file. The value in the app config log is not the value the build process is using. |
It seems like a bug on our end. I will try to fix it, thanks! |
Thank you for filing this issue! |
I also have this problem; I'm glad you guys already noticed it. I leave a comment here to get an update on it. |
Hey, I guess I have kind of a very similar issue. Please take a look #2141. Any workaround for now? |
I have to remove the file from .gitignore, my repo is private so it's fine for me.
|
Hi, I believe that the issue should be fixed, and the |
hey @szdziedzic When using secret file as env I am still getting this error when run
It seems like a local check is done before the remote build job since in Expo dashboard there's no new build created. I bypassed it by doing this in
The config files are added to both Is that local check a bug from EAS or am I missing any thing here? |
I have the same issue
Yeah, this is my thought as well |
I have the same issue as well.
im going to this until this gets fixed |
Summary
I'm using EAS SECRETS environment variable in my app.config.js for iOS googleServicesFile. The build fail because it couldn't find the file.
I can see in the 'Spin up build environment' log that all environment variables are loaded correctly and fed into the app config.
However, the 'Prebuild' log shows that it did not look in the right directory.
Managed or bare?
Managed
Environment
Error output
Build failed: "GoogleService-Info.plist" is missing, make sure that the file exists. Remember that EAS Build only uploads the files tracked by git. Use EAS secrets to provide EAS Build with the file.
Reproducible demo or steps to reproduce from a blank project
eas build --profile development --platform ios
The text was updated successfully, but these errors were encountered: