Skip to content

Commit 04c7a54

Browse files
- hotfix to mitigate GraphQL errors from UnityHub
1 parent 02089a3 commit 04c7a54

File tree

5 files changed

+30
-18
lines changed

5 files changed

+30
-18
lines changed

dist/index.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36062,13 +36062,19 @@ async function getLatestHubVersion() {
3606236062
}
3606336063
}
3606436064
const ignoredLines = [
36065-
`This error originated either by throwing inside of an async function without a catch block`,
36066-
`Unexpected error attempting to determine if executable file exists`,
36067-
`dri3 extension not supported`,
36068-
`Failed to connect to the bus:`,
36069-
`Checking for beta autoupdate feature for deb/rpm distributions`,
36070-
`Found package-type: deb`,
36071-
`XPC error for connection com.apple.backupd.sandbox.xpc: Connection invalid`
36065+
'This error originated either by throwing inside of an async function without a catch block',
36066+
'Unexpected error attempting to determine if executable file exists',
36067+
'dri3 extension not supported',
36068+
'Failed to connect to the bus:',
36069+
'Checking for beta autoupdate feature for deb/rpm distributions',
36070+
'Found package-type: deb',
36071+
'XPC error for connection com.apple.backupd.sandbox.xpc: Connection invalid',
36072+
'Error: No modules found to install.',
36073+
'Failed to execute the command due the following, please see \'-- --headless help\' for assistance.',
36074+
'Invalid key: The GraphQL query at the field at',
36075+
'You have to request `id` or `_id` fields for all selection sets or create a custom `keys` config for `UnityReleaseLabel`.',
36076+
'Entities without keys will be embedded directly on the parent entity. If this is intentional, create a `keys` config for `UnityReleaseLabel` that always returns null.',
36077+
'https://bit.ly/2XbVrpR#15'
3607236078
];
3607336079
async function execUnityHub(args) {
3607436080
if (!hubPath) {

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-setup",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"description": "A GitHub action for setting up the Unity Game Engine for CI/CD workflows.",
55
"author": "Buildalon",
66
"license": "MIT",

src/unity-hub.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,19 @@ async function getLatestHubVersion(): Promise<semver.SemVer | undefined> {
218218
}
219219

220220
const ignoredLines = [
221-
`This error originated either by throwing inside of an async function without a catch block`,
222-
`Unexpected error attempting to determine if executable file exists`,
223-
`dri3 extension not supported`,
224-
`Failed to connect to the bus:`,
225-
`Checking for beta autoupdate feature for deb/rpm distributions`,
226-
`Found package-type: deb`,
227-
`XPC error for connection com.apple.backupd.sandbox.xpc: Connection invalid`
221+
'This error originated either by throwing inside of an async function without a catch block',
222+
'Unexpected error attempting to determine if executable file exists',
223+
'dri3 extension not supported',
224+
'Failed to connect to the bus:',
225+
'Checking for beta autoupdate feature for deb/rpm distributions',
226+
'Found package-type: deb',
227+
'XPC error for connection com.apple.backupd.sandbox.xpc: Connection invalid',
228+
'Error: No modules found to install.',
229+
'Failed to execute the command due the following, please see \'-- --headless help\' for assistance.',
230+
'Invalid key: The GraphQL query at the field at',
231+
'You have to request `id` or `_id` fields for all selection sets or create a custom `keys` config for `UnityReleaseLabel`.',
232+
'Entities without keys will be embedded directly on the parent entity. If this is intentional, create a `keys` config for `UnityReleaseLabel` that always returns null.',
233+
'https://bit.ly/2XbVrpR#15'
228234
];
229235

230236
async function execUnityHub(args: string[]): Promise<string> {

0 commit comments

Comments
 (0)