revert: drop runAsHostUserReuseExisting input (#870) (#871)

game-ci/cli#330 now reuses an existing UID/GID by default for runAsHostUser,
so the opt-in input has nothing to switch. Reverts #870 before it's released.

Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Andy Shinn
2026-11-28 03:46:05 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 188fd69ab7
commit 199699bd37
5 changed files with 9 additions and 22 deletions
-7
View File
@@ -139,13 +139,6 @@ inputs:
description: description:
'Whether to run as a user that matches the host system or the default root container user. Only applicable to 'Whether to run as a user that matches the host system or the default root container user. Only applicable to
Linux hosts and containers. This is useful for fixing permission errors on Self-Hosted runners.' Linux hosts and containers. This is useful for fixing permission errors on Self-Hosted runners.'
runAsHostUserReuseExisting:
required: false
default: 'false'
description:
"With runAsHostUser, reuse a group or user the image already has at the host GID/UID instead of failing to
create it - e.g. the ubuntu user/group at 1000 in Ubuntu 24.04 based images (unityci/editor v4), which is the
usual UID/GID of a self-hosted runner's account. Requires a game-ci/cli release that supports it."
chownFilesTo: chownFilesTo:
required: false required: false
default: '' default: ''
Generated Vendored
+4 -5
View File
@@ -67,7 +67,6 @@ const BOOLEAN_FLAGS = [
['enableGpu', 'enableGpu'], ['enableGpu', 'enableGpu'],
['useHostNetwork', 'useHostNetwork'], ['useHostNetwork', 'useHostNetwork'],
['runAsHostUser', 'runAsHostUser'], ['runAsHostUser', 'runAsHostUser'],
['runAsHostUserReuseExisting', 'runAsHostUserReuseExisting'],
['allowDirtyBuild', 'allowDirtyBuild'], ['allowDirtyBuild', 'allowDirtyBuild'],
['cacheUnityInstallationOnMac', 'cacheUnityInstallationOnMac'], ['cacheUnityInstallationOnMac', 'cacheUnityInstallationOnMac'],
['skipActivation', 'skipActivation'], ['skipActivation', 'skipActivation'],
@@ -149,10 +148,10 @@ const ORCHESTRATE_BOOLEAN_FLAGS = [
// enableGpu: not assigned anywhere in build-parameters-adapter.ts or the // enableGpu: not assigned anywhere in build-parameters-adapter.ts or the
// orchestrator model - a real, currently-unfilled gap versus `build`'s // orchestrator model - a real, currently-unfilled gap versus `build`'s
// GPU passthrough, not something to silently pretend to support. // GPU passthrough, not something to silently pretend to support.
// useHostNetwork/runAsHostUser/runAsHostUserReuseExisting: Docker // useHostNetwork/runAsHostUser: Docker networking/uid-mapping concepts;
// networking/uid-mapping concepts; not assigned by the adapter, and // not assigned by the adapter, and runAsHostUser is meaningless by
// runAsHostUser is meaningless by construction on a bare host process // construction on a bare host process that already runs as that host
// that already runs as that host user. // user.
// cacheUnityInstallationOnMac: build-parameters-adapter.ts DOES assign // cacheUnityInstallationOnMac: build-parameters-adapter.ts DOES assign
// bp.cacheUnityInstallationOnMac, but nothing downstream (no provider, // bp.cacheUnityInstallationOnMac, but nothing downstream (no provider,
// no workflow) ever reads it back - it's a currently-dead field for // no workflow) ever reads it back - it's a currently-dead field for
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
-4
View File
@@ -167,7 +167,6 @@ describe('buildCliArgs', () => {
enableGpu: 'true', enableGpu: 'true',
useHostNetwork: 'true', useHostNetwork: 'true',
runAsHostUser: 'true', runAsHostUser: 'true',
runAsHostUserReuseExisting: 'true',
allowDirtyBuild: 'true', allowDirtyBuild: 'true',
cacheUnityInstallationOnMac: 'true', cacheUnityInstallationOnMac: 'true',
skipActivation: 'true', skipActivation: 'true',
@@ -211,7 +210,6 @@ describe('buildCliArgs', () => {
'--enableGpu', '--enableGpu',
'--useHostNetwork', '--useHostNetwork',
'--runAsHostUser', '--runAsHostUser',
'--runAsHostUserReuseExisting',
'--allowDirtyBuild', '--allowDirtyBuild',
'--cacheUnityInstallationOnMac', '--cacheUnityInstallationOnMac',
'--skipActivation', '--skipActivation',
@@ -335,7 +333,6 @@ describe('buildCliArgs', () => {
enableGpu: 'true', enableGpu: 'true',
useHostNetwork: 'true', useHostNetwork: 'true',
runAsHostUser: 'true', runAsHostUser: 'true',
runAsHostUserReuseExisting: 'true',
cacheUnityInstallationOnMac: 'true', cacheUnityInstallationOnMac: 'true',
linux64RemoveExecutableExtension: 'true', linux64RemoveExecutableExtension: 'true',
}; };
@@ -367,7 +364,6 @@ describe('buildCliArgs', () => {
'enableGpu', 'enableGpu',
'useHostNetwork', 'useHostNetwork',
'runAsHostUser', 'runAsHostUser',
'runAsHostUserReuseExisting',
'cacheUnityInstallationOnMac', 'cacheUnityInstallationOnMac',
'linux64RemoveExecutableExtension', 'linux64RemoveExecutableExtension',
]; ];
+4 -5
View File
@@ -59,7 +59,6 @@ const BOOLEAN_FLAGS: Array<[input: string, flag: string]> = [
['enableGpu', 'enableGpu'], ['enableGpu', 'enableGpu'],
['useHostNetwork', 'useHostNetwork'], ['useHostNetwork', 'useHostNetwork'],
['runAsHostUser', 'runAsHostUser'], ['runAsHostUser', 'runAsHostUser'],
['runAsHostUserReuseExisting', 'runAsHostUserReuseExisting'],
['allowDirtyBuild', 'allowDirtyBuild'], ['allowDirtyBuild', 'allowDirtyBuild'],
['cacheUnityInstallationOnMac', 'cacheUnityInstallationOnMac'], ['cacheUnityInstallationOnMac', 'cacheUnityInstallationOnMac'],
['skipActivation', 'skipActivation'], ['skipActivation', 'skipActivation'],
@@ -145,10 +144,10 @@ const ORCHESTRATE_BOOLEAN_FLAGS: Array<[input: string, flag: string]> = [
// enableGpu: not assigned anywhere in build-parameters-adapter.ts or the // enableGpu: not assigned anywhere in build-parameters-adapter.ts or the
// orchestrator model - a real, currently-unfilled gap versus `build`'s // orchestrator model - a real, currently-unfilled gap versus `build`'s
// GPU passthrough, not something to silently pretend to support. // GPU passthrough, not something to silently pretend to support.
// useHostNetwork/runAsHostUser/runAsHostUserReuseExisting: Docker // useHostNetwork/runAsHostUser: Docker networking/uid-mapping concepts;
// networking/uid-mapping concepts; not assigned by the adapter, and // not assigned by the adapter, and runAsHostUser is meaningless by
// runAsHostUser is meaningless by construction on a bare host process // construction on a bare host process that already runs as that host
// that already runs as that host user. // user.
// cacheUnityInstallationOnMac: build-parameters-adapter.ts DOES assign // cacheUnityInstallationOnMac: build-parameters-adapter.ts DOES assign
// bp.cacheUnityInstallationOnMac, but nothing downstream (no provider, // bp.cacheUnityInstallationOnMac, but nothing downstream (no provider,
// no workflow) ever reads it back - it's a currently-dead field for // no workflow) ever reads it back - it's a currently-dead field for