Skip to content

Commit

Permalink
[build-tools] replace EAS Secrets with EAS environment variables in e…
Browse files Browse the repository at this point in the history
…rror messages (#510)
  • Loading branch information
szdziedzic authored Feb 10, 2025
1 parent 6117d9e commit 13e04d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/build-tools/src/buildErrors/userErrorHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export const userErrorHandlers: ErrorHandler<UserFacingError>[] = [
createError: () =>
new UserFacingError(
'EAS_BUILD_MISSING_GOOGLE_SERVICES_JSON_ERROR',
'"google-services.json" 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.',
'https://docs.expo.dev/build-reference/variables/#how-to-upload-a-secret-file-and'
'"google-services.json" is missing, make sure that the file exists. Remember that EAS Build only uploads the files tracked by git. Use EAS environment variables to provide EAS Build with the file.',
'https://docs.expo.dev/eas/environment-variables/#file-environment-variables'
),
},
{
Expand All @@ -84,8 +84,8 @@ export const userErrorHandlers: ErrorHandler<UserFacingError>[] = [
createError: () =>
new UserFacingError(
'EAS_BUILD_MISSING_GOOGLE_SERVICES_JSON_ERROR',
'"google-services.json" 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.',
'https://docs.expo.dev/build-reference/variables/#how-to-upload-a-secret-file-and'
'"google-services.json" is missing, make sure that the file exists. Remember that EAS Build only uploads the files tracked by git. Use EAS environment variables to provide EAS Build with the file.',
'https://docs.expo.dev/eas/environment-variables/#file-environment-variables'
),
},
{
Expand All @@ -97,8 +97,8 @@ export const userErrorHandlers: ErrorHandler<UserFacingError>[] = [
createError: () =>
new UserFacingError(
'EAS_BUILD_MISSING_GOOGLE_SERVICES_PLIST_ERROR',
'"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.',
'https://docs.expo.dev/build-reference/variables/#how-to-upload-a-secret-file-and'
'"GoogleService-Info.plist" is missing, make sure that the file exists. Remember that EAS Build only uploads the files tracked by git. Use EAS environment variables to provide EAS Build with the file.',
'https://docs.expo.dev/eas/environment-variables/#file-environment-variables'
),
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/build-tools/src/common/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async function validateAppConfigAsync(
extraMessage = 'Make sure you connected your GitHub repository to the correct Expo project. ';
} else if (isUsingDynamicConfig) {
extraMessage =
'If you are using environment variables to switch between projects in app.config.js/app.config.ts, make sure those variables are also set inside EAS Build. You can do that using "env" field in eas.json or EAS Secrets. ';
'If you are using environment variables to switch between projects in app.config.js/app.config.ts, make sure those variables are also set inside EAS Build. You can do that using "env" field in eas.json or EAS environment variables. ';
}
throw new UserFacingError(
'EAS_BUILD_PROJECT_ID_MISMATCH',
Expand Down
2 changes: 1 addition & 1 deletion packages/build-tools/src/steps/utils/expoUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function configureEASUpdateAsync({
`Runtime version from the app config evaluated on your local machine (${metadata.runtimeVersion}) does not match the one resolved here (${runtimeVersion}).`
);
logger.warn(
"If you're using conditional app configs, e.g. depending on an environment variable, make sure to set the variable in eas.json or configure it with EAS Secret."
"If you're using conditional app configs, e.g. depending on an environment variable, make sure to set the variable in eas.json or configure it with EAS environment variables."
);
}

Expand Down

0 comments on commit 13e04d1

Please sign in to comment.