@expo/eas-build-job 0.2.75 → 0.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/android.d.ts +1 -1
- package/dist/android.js +2 -0
- package/dist/android.js.map +1 -1
- package/dist/errors.d.ts +10 -0
- package/dist/errors.js +23 -5
- package/dist/errors.js.map +1 -1
- package/package.json +1 -1
package/dist/android.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare enum BuildType {
|
|
|
10
10
|
APK = "apk",
|
|
11
11
|
APP_BUNDLE = "app-bundle"
|
|
12
12
|
}
|
|
13
|
-
export declare const builderBaseImages: readonly ["default", "latest", "stable", "ubuntu-18.04-android-30-ndk-r19c", "ubuntu-20.04-android-30-ndk-r21e", "ubuntu-18.04-jdk-8-ndk-r19c", "ubuntu-18.04-jdk-11-ndk-r19c", "ubuntu-20.04-jdk-8-ndk-r21e", "ubuntu-20.04-jdk-11-ndk-r21e"];
|
|
13
|
+
export declare const builderBaseImages: readonly ["default", "latest", "stable", "ubuntu-18.04-android-30-ndk-r19c", "ubuntu-20.04-android-30-ndk-r21e", "ubuntu-18.04-jdk-8-ndk-r19c", "ubuntu-18.04-jdk-11-ndk-r19c", "ubuntu-20.04-jdk-8-ndk-r21e", "ubuntu-20.04-jdk-11-ndk-r21e", "ubuntu-22.04-jdk-8-ndk-r21e", "ubuntu-22.04-jdk-11-ndk-r21e"];
|
|
14
14
|
export declare const reactNativeVersionToDefaultBuilderImage: Record<string, typeof builderBaseImages[number]>;
|
|
15
15
|
export interface BuilderEnvironment {
|
|
16
16
|
image?: typeof builderBaseImages[number];
|
package/dist/android.js
CHANGED
|
@@ -27,6 +27,8 @@ exports.builderBaseImages = [
|
|
|
27
27
|
'ubuntu-18.04-jdk-11-ndk-r19c',
|
|
28
28
|
'ubuntu-20.04-jdk-8-ndk-r21e',
|
|
29
29
|
'ubuntu-20.04-jdk-11-ndk-r21e',
|
|
30
|
+
'ubuntu-22.04-jdk-8-ndk-r21e',
|
|
31
|
+
'ubuntu-22.04-jdk-11-ndk-r21e',
|
|
30
32
|
];
|
|
31
33
|
exports.reactNativeVersionToDefaultBuilderImage = {
|
|
32
34
|
'>=0.68.0': 'ubuntu-18.04-jdk-11-ndk-r19c',
|
package/dist/android.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android.js","sourceRoot":"","sources":["../src/android.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,qCASkB;AASlB,MAAM,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACpC,CAAC,CAAC;AAEH,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,sCAAyB,CAAA;AAC3B,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAEY,QAAA,iBAAiB,GAAG;IAC/B,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,kCAAkC;IAClC,kCAAkC;IAClC,6BAA6B;IAC7B,8BAA8B;IAC9B,6BAA6B;IAC7B,8BAA8B;CACtB,CAAC;AAEE,QAAA,uCAAuC,GAGhD;IACF,UAAU,EAAE,8BAA8B;IAC1C,SAAS,EAAE,6BAA6B;CACzC,CAAC;AAWF,MAAM,wBAAwB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,yBAAiB,CAAC;IAC/C,IAAI,EAAE,aAAG,CAAC,MAAM,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,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;IAEtB,YAAY,EAAE,aAAG,CAAC,MAAM,CAAC;QACvB,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE;KAC9B,CAAC;CACH,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\n\nimport {\n ArchiveSource,\n ArchiveSourceSchema,\n Env,\n EnvSchema,\n Platform,\n Workflow,\n Cache,\n CacheSchema,\n} from './common';\n\nexport interface Keystore {\n dataBase64: string;\n keystorePassword: string;\n keyAlias: string;\n keyPassword?: string;\n}\n\nconst KeystoreSchema = Joi.object({\n dataBase64: Joi.string().required(),\n keystorePassword: Joi.string().allow('').required(),\n keyAlias: Joi.string().required(),\n keyPassword: Joi.string().allow(''),\n});\n\nexport enum BuildType {\n APK = 'apk',\n APP_BUNDLE = 'app-bundle',\n}\n\nexport const builderBaseImages = [\n 'default',\n 'latest',\n 'stable',\n 'ubuntu-18.04-android-30-ndk-r19c', // legacy naming (image with java 8)\n 'ubuntu-20.04-android-30-ndk-r21e', // legacy naming (image with java 8)\n 'ubuntu-18.04-jdk-8-ndk-r19c',\n 'ubuntu-18.04-jdk-11-ndk-r19c',\n 'ubuntu-20.04-jdk-8-ndk-r21e',\n 'ubuntu-20.04-jdk-11-ndk-r21e',\n] as const;\n\nexport const reactNativeVersionToDefaultBuilderImage: Record<\n string,\n typeof builderBaseImages[number]\n> = {\n '>=0.68.0': 'ubuntu-18.04-jdk-11-ndk-r19c',\n '<0.68.0': 'ubuntu-18.04-jdk-8-ndk-r19c',\n};\n\nexport interface BuilderEnvironment {\n image?: typeof builderBaseImages[number];\n node?: string;\n yarn?: string;\n expoCli?: string;\n ndk?: string;\n env?: Env;\n}\n\nconst BuilderEnvironmentSchema = Joi.object({\n image: Joi.string().valid(...builderBaseImages),\n node: Joi.string(),\n yarn: Joi.string(),\n expoCli: Joi.string(),\n ndk: Joi.string(),\n env: EnvSchema,\n});\n\nexport interface Job {\n type: Workflow;\n projectArchive: ArchiveSource;\n platform: Platform.ANDROID;\n projectRootDirectory: string;\n releaseChannel?: string;\n updates?: {\n channel?: string;\n };\n secrets: {\n buildCredentials?: {\n keystore: Keystore;\n };\n environmentSecrets?: Env;\n };\n builderEnvironment?: BuilderEnvironment;\n cache: Cache;\n developmentClient?: boolean;\n\n // generic\n gradleCommand?: string;\n artifactPath?: string;\n\n // managed\n buildType?: BuildType;\n username?: string;\n\n experimental?: {\n prebuildCommand?: string;\n };\n}\n\nexport const JobSchema = Joi.object({\n type: Joi.string()\n .valid(...Object.values(Workflow))\n .required(),\n projectArchive: ArchiveSourceSchema.required(),\n platform: Joi.string().valid(Platform.ANDROID).required(),\n projectRootDirectory: Joi.string().required(),\n releaseChannel: Joi.string(),\n updates: Joi.object({\n channel: Joi.string(),\n }),\n secrets: Joi.object({\n buildCredentials: Joi.object({ keystore: KeystoreSchema.required() }),\n environmentSecrets: EnvSchema,\n }).required(),\n builderEnvironment: BuilderEnvironmentSchema,\n cache: CacheSchema.default(),\n developmentClient: Joi.boolean(),\n\n gradleCommand: Joi.string(),\n artifactPath: Joi.string(),\n\n buildType: Joi.string().valid(...Object.values(BuildType)),\n username: Joi.string(),\n\n experimental: Joi.object({\n prebuildCommand: Joi.string(),\n }),\n}).oxor('releaseChannel', 'updates.channel');\n"]}
|
|
1
|
+
{"version":3,"file":"android.js","sourceRoot":"","sources":["../src/android.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,qCASkB;AASlB,MAAM,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,aAA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C7C,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE;IAC5B,OAAO,EAAE,aAAG,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE;KACtB,CAAC;IACF,OAAO,EAAE,aAAG,CAAC,MAAM,CAAC;QAClB,gBAAgB,EAAE,aAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE,EAAE,CAAC;QACrE,kBAAkB,EAAE,kBAAS;KAC9B,CAAC,CAAC,QAAQ,EAAE;IACb,kBAAkB,EAAE,wBAAwB;IAC5C,KAAK,EAAE,oBAAW,CAAC,OAAO,EAAE;IAC5B,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAEhC,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE;IAC3B,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE;IAE1B,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1D,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;IAEtB,YAAY,EAAE,aAAG,CAAC,MAAM,CAAC;QACvB,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE;KAC9B,CAAC;CACH,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\n\nimport {\n ArchiveSource,\n ArchiveSourceSchema,\n Env,\n EnvSchema,\n Platform,\n Workflow,\n Cache,\n CacheSchema,\n} from './common';\n\nexport interface Keystore {\n dataBase64: string;\n keystorePassword: string;\n keyAlias: string;\n keyPassword?: string;\n}\n\nconst KeystoreSchema = Joi.object({\n dataBase64: Joi.string().required(),\n keystorePassword: Joi.string().allow('').required(),\n keyAlias: Joi.string().required(),\n keyPassword: Joi.string().allow(''),\n});\n\nexport enum BuildType {\n APK = 'apk',\n APP_BUNDLE = 'app-bundle',\n}\n\nexport const builderBaseImages = [\n 'default',\n 'latest',\n 'stable',\n 'ubuntu-18.04-android-30-ndk-r19c', // legacy naming (image with java 8)\n 'ubuntu-20.04-android-30-ndk-r21e', // legacy naming (image with java 8)\n 'ubuntu-18.04-jdk-8-ndk-r19c',\n 'ubuntu-18.04-jdk-11-ndk-r19c',\n 'ubuntu-20.04-jdk-8-ndk-r21e',\n 'ubuntu-20.04-jdk-11-ndk-r21e',\n 'ubuntu-22.04-jdk-8-ndk-r21e',\n 'ubuntu-22.04-jdk-11-ndk-r21e',\n] as const;\n\nexport const reactNativeVersionToDefaultBuilderImage: Record<\n string,\n typeof builderBaseImages[number]\n> = {\n '>=0.68.0': 'ubuntu-18.04-jdk-11-ndk-r19c',\n '<0.68.0': 'ubuntu-18.04-jdk-8-ndk-r19c',\n};\n\nexport interface BuilderEnvironment {\n image?: typeof builderBaseImages[number];\n node?: string;\n yarn?: string;\n expoCli?: string;\n ndk?: string;\n env?: Env;\n}\n\nconst BuilderEnvironmentSchema = Joi.object({\n image: Joi.string().valid(...builderBaseImages),\n node: Joi.string(),\n yarn: Joi.string(),\n expoCli: Joi.string(),\n ndk: Joi.string(),\n env: EnvSchema,\n});\n\nexport interface Job {\n type: Workflow;\n projectArchive: ArchiveSource;\n platform: Platform.ANDROID;\n projectRootDirectory: string;\n releaseChannel?: string;\n updates?: {\n channel?: string;\n };\n secrets: {\n buildCredentials?: {\n keystore: Keystore;\n };\n environmentSecrets?: Env;\n };\n builderEnvironment?: BuilderEnvironment;\n cache: Cache;\n developmentClient?: boolean;\n\n // generic\n gradleCommand?: string;\n artifactPath?: string;\n\n // managed\n buildType?: BuildType;\n username?: string;\n\n experimental?: {\n prebuildCommand?: string;\n };\n}\n\nexport const JobSchema = Joi.object({\n type: Joi.string()\n .valid(...Object.values(Workflow))\n .required(),\n projectArchive: ArchiveSourceSchema.required(),\n platform: Joi.string().valid(Platform.ANDROID).required(),\n projectRootDirectory: Joi.string().required(),\n releaseChannel: Joi.string(),\n updates: Joi.object({\n channel: Joi.string(),\n }),\n secrets: Joi.object({\n buildCredentials: Joi.object({ keystore: KeystoreSchema.required() }),\n environmentSecrets: EnvSchema,\n }).required(),\n builderEnvironment: BuilderEnvironmentSchema,\n cache: CacheSchema.default(),\n developmentClient: Joi.boolean(),\n\n gradleCommand: Joi.string(),\n artifactPath: Joi.string(),\n\n buildType: Joi.string().valid(...Object.values(BuildType)),\n username: Joi.string(),\n\n experimental: Joi.object({\n prebuildCommand: Joi.string(),\n }),\n}).oxor('releaseChannel', 'updates.channel');\n"]}
|
package/dist/errors.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export declare enum ErrorCode {
|
|
|
12
12
|
INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR = "EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR",
|
|
13
13
|
INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR = "EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR",
|
|
14
14
|
YARN_LOCK_CHECKSUM_ERROR = "EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR",
|
|
15
|
+
YARN_MULTIPLE_INSTANCES_ERROR = "EAS_BUILD_YARN_MULTIPLE_INSTANCES_ERROR",
|
|
16
|
+
NPM_PACKAGE_CORRUPTED_ERROR = "EAS_BUILD_NPM_PACKAGE_CORRUPTED_ERROR",
|
|
15
17
|
UNKNOWN_FASTLANE_ERROR = "EAS_BUILD_UNKNOWN_FASTLANE_ERROR",
|
|
16
18
|
UNKNOWN_GRADLE_ERROR = "EAS_BUILD_UNKNOWN_GRADLE_ERROR",
|
|
17
19
|
BUILD_TIMEOUT_ERROR = "EAS_BUILD_TIMEOUT_ERROR"
|
|
@@ -84,10 +86,18 @@ export declare class IncompatiblePodsGenericWorkflowError extends UserError {
|
|
|
84
86
|
errorCode: ErrorCode;
|
|
85
87
|
constructor(usingDefaultCacheConfig: boolean);
|
|
86
88
|
}
|
|
89
|
+
export declare class YarnMultipleInstancesError extends UserError {
|
|
90
|
+
errorCode: ErrorCode;
|
|
91
|
+
constructor();
|
|
92
|
+
}
|
|
87
93
|
export declare class YarnLockChecksumError extends UserError {
|
|
88
94
|
errorCode: ErrorCode;
|
|
89
95
|
constructor(packageName: string);
|
|
90
96
|
}
|
|
97
|
+
export declare class NpmCorruptedPackageError extends UserError {
|
|
98
|
+
errorCode: ErrorCode;
|
|
99
|
+
constructor(packageName: string);
|
|
100
|
+
}
|
|
91
101
|
export declare class UnknownGradleError extends UserError {
|
|
92
102
|
errorCode: ErrorCode;
|
|
93
103
|
message: string;
|
package/dist/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnknownGradleError = exports.YarnLockChecksumError = exports.IncompatiblePodsGenericWorkflowError = exports.IncompatiblePodsManagedWorkflowError = exports.UnknownFastlaneError = exports.MissingGoogleServicesPlist = exports.MissingGoogleServicesJson = exports.UnsupportedBundlerVersion = exports.UnsupportedCocoaPodsVersion = exports.InvalidKeystoreAliasError = exports.InvalidKeystoreFormatError = exports.SystemDepsInstallError = exports.CredentialsDistCertMismatchError = exports.BuildTimeout = exports.ServerError = exports.UnknownError = exports.UserError = exports.ErrorCode = void 0;
|
|
3
|
+
exports.UnknownGradleError = exports.NpmCorruptedPackageError = exports.YarnLockChecksumError = exports.YarnMultipleInstancesError = exports.IncompatiblePodsGenericWorkflowError = exports.IncompatiblePodsManagedWorkflowError = exports.UnknownFastlaneError = exports.MissingGoogleServicesPlist = exports.MissingGoogleServicesJson = exports.UnsupportedBundlerVersion = exports.UnsupportedCocoaPodsVersion = exports.InvalidKeystoreAliasError = exports.InvalidKeystoreFormatError = exports.SystemDepsInstallError = exports.CredentialsDistCertMismatchError = exports.BuildTimeout = exports.ServerError = exports.UnknownError = exports.UserError = exports.ErrorCode = void 0;
|
|
4
4
|
var ErrorCode;
|
|
5
5
|
(function (ErrorCode) {
|
|
6
6
|
ErrorCode["UKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
@@ -16,6 +16,8 @@ var ErrorCode;
|
|
|
16
16
|
ErrorCode["INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR"] = "EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR";
|
|
17
17
|
ErrorCode["INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR"] = "EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR";
|
|
18
18
|
ErrorCode["YARN_LOCK_CHECKSUM_ERROR"] = "EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR";
|
|
19
|
+
ErrorCode["YARN_MULTIPLE_INSTANCES_ERROR"] = "EAS_BUILD_YARN_MULTIPLE_INSTANCES_ERROR";
|
|
20
|
+
ErrorCode["NPM_PACKAGE_CORRUPTED_ERROR"] = "EAS_BUILD_NPM_PACKAGE_CORRUPTED_ERROR";
|
|
19
21
|
ErrorCode["UNKNOWN_FASTLANE_ERROR"] = "EAS_BUILD_UNKNOWN_FASTLANE_ERROR";
|
|
20
22
|
ErrorCode["UNKNOWN_GRADLE_ERROR"] = "EAS_BUILD_UNKNOWN_GRADLE_ERROR";
|
|
21
23
|
ErrorCode["BUILD_TIMEOUT_ERROR"] = "EAS_BUILD_TIMEOUT_ERROR";
|
|
@@ -137,8 +139,8 @@ class IncompatiblePodsManagedWorkflowError extends UserError {
|
|
|
137
139
|
this.message = `Compatible versions of some pods could not be resolved.
|
|
138
140
|
You are seeing this error because either:
|
|
139
141
|
- Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that ${usingDefaultCacheConfig
|
|
140
|
-
? 'add the "cache.key" field (it can be set to any value) in eas.json to invalidate the cache.'
|
|
141
|
-
: 'update value of the "cache.key" field in eas.json to invalidate the cache.'}
|
|
142
|
+
? 'add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'
|
|
143
|
+
: 'update value of the "cache.key" field in the build profile in eas.json to invalidate the cache.'}
|
|
142
144
|
- Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.
|
|
143
145
|
`;
|
|
144
146
|
}
|
|
@@ -151,13 +153,21 @@ class IncompatiblePodsGenericWorkflowError extends UserError {
|
|
|
151
153
|
this.message = `Compatible versions of some pods could not be resolved.
|
|
152
154
|
You are seeing this error because either:
|
|
153
155
|
- Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${usingDefaultCacheConfig
|
|
154
|
-
? 'add the "cache.key" field (it can be set to any value) in eas.json to invalidate the cache.'
|
|
155
|
-
: 'update value of the "cache.key" field in eas.json to invalidate the cache.'}
|
|
156
|
+
? 'add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'
|
|
157
|
+
: 'update value of the "cache.key" field in the build profile in eas.json to invalidate the cache.'}
|
|
156
158
|
- Some of the pods used in your project depend on different versions of the same pod. Please see logs for more info.
|
|
157
159
|
`;
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
162
|
exports.IncompatiblePodsGenericWorkflowError = IncompatiblePodsGenericWorkflowError;
|
|
163
|
+
class YarnMultipleInstancesError extends UserError {
|
|
164
|
+
constructor() {
|
|
165
|
+
super();
|
|
166
|
+
this.errorCode = ErrorCode.YARN_MULTIPLE_INSTANCES_ERROR;
|
|
167
|
+
this.message = `One of project dependencies is starting new install process while the main one is still in progress, which might result in corrupted packages. Most likely the reason for error is "prepare" script in git-referenced dependency of your project. Learn more: https://github.com/yarnpkg/yarn/issues/7212#issuecomment-493720324`;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.YarnMultipleInstancesError = YarnMultipleInstancesError;
|
|
161
171
|
class YarnLockChecksumError extends UserError {
|
|
162
172
|
constructor(packageName) {
|
|
163
173
|
super();
|
|
@@ -169,6 +179,14 @@ class YarnLockChecksumError extends UserError {
|
|
|
169
179
|
}
|
|
170
180
|
}
|
|
171
181
|
exports.YarnLockChecksumError = YarnLockChecksumError;
|
|
182
|
+
class NpmCorruptedPackageError extends UserError {
|
|
183
|
+
constructor(packageName) {
|
|
184
|
+
super();
|
|
185
|
+
this.errorCode = ErrorCode.NPM_PACKAGE_CORRUPTED_ERROR;
|
|
186
|
+
this.message = `Package ${packageName} is corrupted, try switching to public npm registry by adding ("eas-build-pre-install": "npm config set registry https://registry.npmjs.org/") in the "scripts" section in package.json. If this resolves the issue please report it as a bug.`;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
exports.NpmCorruptedPackageError = NpmCorruptedPackageError;
|
|
172
190
|
class UnknownGradleError extends UserError {
|
|
173
191
|
constructor() {
|
|
174
192
|
super(...arguments);
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAiBX;AAjBD,WAAY,SAAS;IACnB,2CAA8B,CAAA;IAC9B,0CAA6B,CAAA;IAC7B,wFAA2E,CAAA;IAC3E,8EAAiE,CAAA;IACjE,kGAAqF,CAAA;IACrF,8FAAiF,CAAA;IACjF,sFAAyE,CAAA;IACzE,oFAAuE,CAAA;IACvE,gGAAmF,CAAA;IACnF,kGAAqF,CAAA;IACrF,4GAA+F,CAAA;IAC/F,4GAA+F,CAAA;IAC/F,4EAA+D,CAAA;IAC/D,wEAA2D,CAAA;IAC3D,oEAAuD,CAAA;IACvD,4DAA+C,CAAA;AACjD,CAAC,EAjBW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAiBpB;AAQD,MAAsB,SAAU,SAAQ,KAAK;IAKpC,MAAM;QACX,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF;AAZD,8BAYC;AAED,MAAa,YAAa,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MAAa,qBAAsB,SAAQ,SAAS;IAGlD,YAAY,WAAmB;QAC7B,KAAK,EAAE,CAAC;QAHV,cAAS,GAAG,SAAS,CAAC,wBAAwB,CAAC;QAI7C,IAAI,CAAC,OAAO,GAAG,yBAAyB,WAAW;;;6BAG1B,CAAC;IAC5B,CAAC;CACF;AAVD,sDAUC;AAED,MAAa,kBAAmB,SAAQ,SAAS;IAAjD;;QACE,cAAS,GAAG,SAAS,CAAC,oBAAoB,CAAC;QAC3C,YAAO,GAAG,sFAAsF,CAAC;IACnG,CAAC;CAAA;AAHD,gDAGC","sourcesContent":["export enum ErrorCode {\n UKNOWN_ERROR = 'UNKNOWN_ERROR',\n SERVER_ERROR = 'SERVER_ERROR',\n CREDENTIALS_DIST_CERT_MISMATCH = 'EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH',\n SYSTEM_DEPS_INSTALL_ERROR = 'EAS_BUILD_SYSTEM_DEPS_INSTALL_ERROR',\n UNSUPPORTED_COCOAPODS_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_COCOAPODS_VERSION_ERROR',\n UNSUPPORTED_BUNDLER_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_BUNDLER_VERSION_ERROR',\n INVALID_KEYSTORE_FORMAT_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_FORMAT_ERROR',\n INVALID_KEYSTORE_ALIAS_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_ALIAS_ERROR',\n MISSING_GOOGLE_SERVICES_JSON_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_JSON_ERROR',\n MISSING_GOOGLE_SERVICES_PLIST_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_PLIST_ERROR',\n INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR',\n INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR',\n YARN_LOCK_CHECKSUM_ERROR = 'EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR',\n UNKNOWN_FASTLANE_ERROR = 'EAS_BUILD_UNKNOWN_FASTLANE_ERROR',\n UNKNOWN_GRADLE_ERROR = 'EAS_BUILD_UNKNOWN_GRADLE_ERROR',\n BUILD_TIMEOUT_ERROR = 'EAS_BUILD_TIMEOUT_ERROR',\n}\n\nexport interface ExternalUserError {\n errorCode: string;\n message: string;\n docsUrl?: string;\n}\n\nexport abstract class UserError extends Error {\n public abstract errorCode: ErrorCode;\n public docsUrl?: string;\n public innerError?: Error;\n\n public format(): ExternalUserError {\n return {\n errorCode: this.errorCode,\n message: this.message,\n docsUrl: this.docsUrl,\n };\n }\n}\n\nexport class UnknownError extends UserError {\n errorCode = ErrorCode.UKNOWN_ERROR;\n message = 'Unknown error. Please see logs.';\n}\n\nexport class ServerError extends UserError {\n errorCode = ErrorCode.SERVER_ERROR;\n message =\n 'Internal Server Error.\\nPlease try again later. If the problem persists, please report the issue.';\n}\n\nexport class BuildTimeout extends ServerError {\n constructor(maxBuildTimeMs: number) {\n super();\n this.message = `Your build has exceeded the maximum build time of ${\n maxBuildTimeMs / (60 * 1000)\n } minutes.`;\n }\n}\n\nexport class CredentialsDistCertMismatchError extends UserError {\n errorCode = ErrorCode.CREDENTIALS_DIST_CERT_MISMATCH;\n message = \"Provisioning profile and distribution certificate don't match.\";\n}\n\nexport class SystemDepsInstallError extends UserError {\n errorCode = ErrorCode.SYSTEM_DEPS_INSTALL_ERROR;\n\n constructor(dependency: string) {\n super();\n this.message = `Failed to install ${dependency}. Make sure you specified the correct version in eas.json.`;\n }\n}\n\nexport class InvalidKeystoreFormatError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The keystore used in this build is malformed or it has an unsupported type. Make sure you provided the correct file.';\n}\n\nexport class InvalidKeystoreAliasError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The alias specified for this keystore does not exist. Make sure you specified the correct value.';\n}\n\nexport class UnsupportedCocoaPodsVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_COCOAPODS_VERSION_ERROR;\n message = `Your project requires a newer version of CocoaPods, you can update it in the build profile in eas.json by either:\n- changing the current version under key \"cocoapods\"\n- switching to an image that supports that version under key \"image\"`;\n docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';\n}\n\nexport class UnsupportedBundlerVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_BUNDLER_VERSION_ERROR;\n message = `Your project requires a different version of the Ruby \"bundler\" program than the version installed in this EAS Build environment. You can specify which version of \"bundler\" to install by specifying the version under \"build\"→[buildProfileName]→\"ios\"→\"bundler\" in eas.json.`;\n docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';\n}\n\nexport class MissingGoogleServicesJson extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_JSON_ERROR;\n message =\n '\"google-services.json\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class MissingGoogleServicesPlist extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_PLIST_ERROR;\n message =\n '\"GoogleService-Info.plist\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class UnknownFastlaneError extends UserError {\n errorCode = ErrorCode.UNKNOWN_FASTLANE_ERROR;\n message = `Fastlane build failed with unknown error. Please refer to the \"Run fastlane\" and \"Xcode Logs\" phases.\nFastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.`;\n}\n\nexport class IncompatiblePodsManagedWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in eas.json to invalidate the cache.'\n }\n - Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class IncompatiblePodsGenericWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in eas.json to invalidate the cache.'\n }\n - Some of the pods used in your project depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class YarnLockChecksumError extends UserError {\n errorCode = ErrorCode.YARN_LOCK_CHECKSUM_ERROR;\n\n constructor(packageName: string) {\n super();\n this.message = `Checksum for package \"${packageName}\" does not match value in registry. To fix that:\n- run \"yarn cache clean\"\n- remove yarn.lock (or only the section for that package)\n- run \"yarn install --force\"`;\n }\n}\n\nexport class UnknownGradleError extends UserError {\n errorCode = ErrorCode.UNKNOWN_GRADLE_ERROR;\n message = 'Gradle build failed with unknown error. Please see logs for the \"Run gradlew\" phase.';\n}\n"]}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAmBX;AAnBD,WAAY,SAAS;IACnB,2CAA8B,CAAA;IAC9B,0CAA6B,CAAA;IAC7B,wFAA2E,CAAA;IAC3E,8EAAiE,CAAA;IACjE,kGAAqF,CAAA;IACrF,8FAAiF,CAAA;IACjF,sFAAyE,CAAA;IACzE,oFAAuE,CAAA;IACvE,gGAAm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sourcesContent":["export enum ErrorCode {\n UKNOWN_ERROR = 'UNKNOWN_ERROR',\n SERVER_ERROR = 'SERVER_ERROR',\n CREDENTIALS_DIST_CERT_MISMATCH = 'EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH',\n SYSTEM_DEPS_INSTALL_ERROR = 'EAS_BUILD_SYSTEM_DEPS_INSTALL_ERROR',\n UNSUPPORTED_COCOAPODS_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_COCOAPODS_VERSION_ERROR',\n UNSUPPORTED_BUNDLER_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_BUNDLER_VERSION_ERROR',\n INVALID_KEYSTORE_FORMAT_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_FORMAT_ERROR',\n INVALID_KEYSTORE_ALIAS_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_ALIAS_ERROR',\n MISSING_GOOGLE_SERVICES_JSON_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_JSON_ERROR',\n MISSING_GOOGLE_SERVICES_PLIST_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_PLIST_ERROR',\n INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR',\n INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR',\n YARN_LOCK_CHECKSUM_ERROR = 'EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR',\n YARN_MULTIPLE_INSTANCES_ERROR = 'EAS_BUILD_YARN_MULTIPLE_INSTANCES_ERROR',\n NPM_PACKAGE_CORRUPTED_ERROR = 'EAS_BUILD_NPM_PACKAGE_CORRUPTED_ERROR',\n UNKNOWN_FASTLANE_ERROR = 'EAS_BUILD_UNKNOWN_FASTLANE_ERROR',\n UNKNOWN_GRADLE_ERROR = 'EAS_BUILD_UNKNOWN_GRADLE_ERROR',\n BUILD_TIMEOUT_ERROR = 'EAS_BUILD_TIMEOUT_ERROR',\n}\n\nexport interface ExternalUserError {\n errorCode: string;\n message: string;\n docsUrl?: string;\n}\n\nexport abstract class UserError extends Error {\n public abstract errorCode: ErrorCode;\n public docsUrl?: string;\n public innerError?: Error;\n\n public format(): ExternalUserError {\n return {\n errorCode: this.errorCode,\n message: this.message,\n docsUrl: this.docsUrl,\n };\n }\n}\n\nexport class UnknownError extends UserError {\n errorCode = ErrorCode.UKNOWN_ERROR;\n message = 'Unknown error. Please see logs.';\n}\n\nexport class ServerError extends UserError {\n errorCode = ErrorCode.SERVER_ERROR;\n message =\n 'Internal Server Error.\\nPlease try again later. If the problem persists, please report the issue.';\n}\n\nexport class BuildTimeout extends ServerError {\n constructor(maxBuildTimeMs: number) {\n super();\n this.message = `Your build has exceeded the maximum build time of ${\n maxBuildTimeMs / (60 * 1000)\n } minutes.`;\n }\n}\n\nexport class CredentialsDistCertMismatchError extends UserError {\n errorCode = ErrorCode.CREDENTIALS_DIST_CERT_MISMATCH;\n message = \"Provisioning profile and distribution certificate don't match.\";\n}\n\nexport class SystemDepsInstallError extends UserError {\n errorCode = ErrorCode.SYSTEM_DEPS_INSTALL_ERROR;\n\n constructor(dependency: string) {\n super();\n this.message = `Failed to install ${dependency}. Make sure you specified the correct version in eas.json.`;\n }\n}\n\nexport class InvalidKeystoreFormatError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The keystore used in this build is malformed or it has an unsupported type. Make sure you provided the correct file.';\n}\n\nexport class InvalidKeystoreAliasError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The alias specified for this keystore does not exist. Make sure you specified the correct value.';\n}\n\nexport class UnsupportedCocoaPodsVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_COCOAPODS_VERSION_ERROR;\n message = `Your project requires a newer version of CocoaPods, you can update it in the build profile in eas.json by either:\n- changing the current version under key \"cocoapods\"\n- switching to an image that supports that version under key \"image\"`;\n docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';\n}\n\nexport class UnsupportedBundlerVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_BUNDLER_VERSION_ERROR;\n message = `Your project requires a different version of the Ruby \"bundler\" program than the version installed in this EAS Build environment. You can specify which version of \"bundler\" to install by specifying the version under \"build\"→[buildProfileName]→\"ios\"→\"bundler\" in eas.json.`;\n docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';\n}\n\nexport class MissingGoogleServicesJson extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_JSON_ERROR;\n message =\n '\"google-services.json\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class MissingGoogleServicesPlist extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_PLIST_ERROR;\n message =\n '\"GoogleService-Info.plist\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class UnknownFastlaneError extends UserError {\n errorCode = ErrorCode.UNKNOWN_FASTLANE_ERROR;\n message = `Fastlane build failed with unknown error. Please refer to the \"Run fastlane\" and \"Xcode Logs\" phases.\nFastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.`;\n}\n\nexport class IncompatiblePodsManagedWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in the build profile in eas.json to invalidate the cache.'\n }\n - Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class IncompatiblePodsGenericWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in the build profile in eas.json to invalidate the cache.'\n }\n - Some of the pods used in your project depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class YarnMultipleInstancesError extends UserError {\n errorCode = ErrorCode.YARN_MULTIPLE_INSTANCES_ERROR;\n\n constructor() {\n super();\n this.message = `One of project dependencies is starting new install process while the main one is still in progress, which might result in corrupted packages. Most likely the reason for error is \"prepare\" script in git-referenced dependency of your project. Learn more: https://github.com/yarnpkg/yarn/issues/7212#issuecomment-493720324`;\n }\n}\n\nexport class YarnLockChecksumError extends UserError {\n errorCode = ErrorCode.YARN_LOCK_CHECKSUM_ERROR;\n\n constructor(packageName: string) {\n super();\n this.message = `Checksum for package \"${packageName}\" does not match value in registry. To fix that:\n- run \"yarn cache clean\"\n- remove yarn.lock (or only the section for that package)\n- run \"yarn install --force\"`;\n }\n}\n\nexport class NpmCorruptedPackageError extends UserError {\n errorCode = ErrorCode.NPM_PACKAGE_CORRUPTED_ERROR;\n\n constructor(packageName: string) {\n super();\n this.message = `Package ${packageName} is corrupted, try switching to public npm registry by adding (\"eas-build-pre-install\": \"npm config set registry https://registry.npmjs.org/\") in the \"scripts\" section in package.json. If this resolves the issue please report it as a bug.`;\n }\n}\n\nexport class UnknownGradleError extends UserError {\n errorCode = ErrorCode.UNKNOWN_GRADLE_ERROR;\n message = 'Gradle build failed with unknown error. Please see logs for the \"Run gradlew\" phase.';\n}\n"]}
|