From 8ca79458b98a9be3b70f606efb30678016a0d9fc Mon Sep 17 00:00:00 2001 From: Lucas Bustamante Date: Mon, 1 Aug 2022 17:01:44 -0300 Subject: [PATCH 1/2] Update run.js --- packages/env/lib/commands/run.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/env/lib/commands/run.js b/packages/env/lib/commands/run.js index f944d8de84fa53..18525c0b5d8540 100644 --- a/packages/env/lib/commands/run.js +++ b/packages/env/lib/commands/run.js @@ -2,6 +2,7 @@ * External dependencies */ const { spawn } = require( 'child_process' ); +const os = require("os"); /** * Internal dependencies @@ -53,6 +54,8 @@ function spawnCommandDirectly( { container, command, config, spinner } ) { '-f', config.dockerComposeConfigPath, 'run', + '-u', + os.userInfo().uid, '--rm', container, ...command.split( ' ' ), // The command will fail if passed as a complete string. From e2ee21e46d7e77390e62691961d0df62e1c4c655 Mon Sep 17 00:00:00 2001 From: Lucas Bustamante Date: Mon, 1 Aug 2022 17:24:11 -0300 Subject: [PATCH 2/2] Linting --- packages/env/lib/commands/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/env/lib/commands/run.js b/packages/env/lib/commands/run.js index 18525c0b5d8540..a150d16c6f193c 100644 --- a/packages/env/lib/commands/run.js +++ b/packages/env/lib/commands/run.js @@ -2,7 +2,7 @@ * External dependencies */ const { spawn } = require( 'child_process' ); -const os = require("os"); +const os = require('os'); /** * Internal dependencies