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:
'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.'
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:
required: false
default: ''
Generated Vendored
+4 -5
View File
@@ -67,7 +67,6 @@ const BOOLEAN_FLAGS = [
['enableGpu', 'enableGpu'],
['useHostNetwork', 'useHostNetwork'],
['runAsHostUser', 'runAsHostUser'],
['runAsHostUserReuseExisting', 'runAsHostUserReuseExisting'],
['allowDirtyBuild', 'allowDirtyBuild'],
['cacheUnityInstallationOnMac', 'cacheUnityInstallationOnMac'],
['skipActivation', 'skipActivation'],
@@ -149,10 +148,10 @@ const ORCHESTRATE_BOOLEAN_FLAGS = [
// enableGpu: not assigned anywhere in build-parameters-adapter.ts or the
// orchestrator model - a real, currently-unfilled gap versus `build`'s
// GPU passthrough, not something to silently pretend to support.
// useHostNetwork/runAsHostUser/runAsHostUserReuseExisting: Docker
// networking/uid-mapping concepts; not assigned by the adapter, and
// runAsHostUser is meaningless by construction on a bare host process
// that already runs as that host user.
// useHostNetwork/runAsHostUser: Docker networking/uid-mapping concepts;
// not assigned by the adapter, and runAsHostUser is meaningless by
// construction on a bare host process that already runs as that host
// user.
// cacheUnityInstallationOnMac: build-parameters-adapter.ts DOES assign
// bp.cacheUnityInstallationOnMac, but nothing downstream (no provider,
// 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',
useHostNetwork: 'true',
runAsHostUser: 'true',
runAsHostUserReuseExisting: 'true',
allowDirtyBuild: 'true',
cacheUnityInstallationOnMac: 'true',
skipActivation: 'true',
@@ -211,7 +210,6 @@ describe('buildCliArgs', () => {
'--enableGpu',
'--useHostNetwork',
'--runAsHostUser',
'--runAsHostUserReuseExisting',
'--allowDirtyBuild',
'--cacheUnityInstallationOnMac',
'--skipActivation',
@@ -335,7 +333,6 @@ describe('buildCliArgs', () => {
enableGpu: 'true',
useHostNetwork: 'true',
runAsHostUser: 'true',
runAsHostUserReuseExisting: 'true',
cacheUnityInstallationOnMac: 'true',
linux64RemoveExecutableExtension: 'true',
};
@@ -367,7 +364,6 @@ describe('buildCliArgs', () => {
'enableGpu',
'useHostNetwork',
'runAsHostUser',
'runAsHostUserReuseExisting',
'cacheUnityInstallationOnMac',
'linux64RemoveExecutableExtension',
];
+4 -5
View File
@@ -59,7 +59,6 @@ const BOOLEAN_FLAGS: Array<[input: string, flag: string]> = [
['enableGpu', 'enableGpu'],
['useHostNetwork', 'useHostNetwork'],
['runAsHostUser', 'runAsHostUser'],
['runAsHostUserReuseExisting', 'runAsHostUserReuseExisting'],
['allowDirtyBuild', 'allowDirtyBuild'],
['cacheUnityInstallationOnMac', 'cacheUnityInstallationOnMac'],
['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
// orchestrator model - a real, currently-unfilled gap versus `build`'s
// GPU passthrough, not something to silently pretend to support.
// useHostNetwork/runAsHostUser/runAsHostUserReuseExisting: Docker
// networking/uid-mapping concepts; not assigned by the adapter, and
// runAsHostUser is meaningless by construction on a bare host process
// that already runs as that host user.
// useHostNetwork/runAsHostUser: Docker networking/uid-mapping concepts;
// not assigned by the adapter, and runAsHostUser is meaningless by
// construction on a bare host process that already runs as that host
// user.
// cacheUnityInstallationOnMac: build-parameters-adapter.ts DOES assign
// bp.cacheUnityInstallationOnMac, but nothing downstream (no provider,
// no workflow) ever reads it back - it's a currently-dead field for