From 79a79d73900e81f7bc9e4fd210db00331e780a13 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 31 Aug 2023 10:17:49 -0700 Subject: [PATCH] chore(deps): Bump process from 4.2.4 to 5.0.0 in /actions (#3659) * chore(deps): Bump process from 4.2.4 to 5.0.0 in /actions Bumps [process](https://github.com/google/process.dart) from 4.2.4 to 5.0.0. - [Release notes](https://github.com/google/process.dart/releases) - [Changelog](https://github.com/google/process.dart/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/process.dart/commits) --- updated-dependencies: - dependency-name: process dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * chore(actions): Update process manager interface For conformance to `package:process` v5. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dillon Nys --- actions/lib/src/node/process_manager.dart | 12 ++++++++---- actions/pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/actions/lib/src/node/process_manager.dart b/actions/lib/src/node/process_manager.dart index 9dbaae572c..f3cd5ffc8f 100644 --- a/actions/lib/src/node/process_manager.dart +++ b/actions/lib/src/node/process_manager.dart @@ -49,11 +49,13 @@ final class NodeProcessManager implements Closeable, ProcessManager { Map? environment, bool includeParentEnvironment = true, bool runInShell = false, - Encoding stdoutEncoding = const Utf8Codec(allowMalformed: true), - Encoding stderrEncoding = const Utf8Codec(allowMalformed: true), + Encoding? stdoutEncoding, + Encoding? stderrEncoding, NodeChildProcess? pipe, bool echoOutput = false, }) async { + stdoutEncoding ??= const Utf8Codec(allowMalformed: true); + stderrEncoding ??= const Utf8Codec(allowMalformed: true); final process = await start( command, workingDirectory: workingDirectory, @@ -101,10 +103,12 @@ final class NodeProcessManager implements Closeable, ProcessManager { Map? environment, bool includeParentEnvironment = true, bool runInShell = false, - Encoding stdoutEncoding = const Utf8Codec(allowMalformed: true), - Encoding stderrEncoding = const Utf8Codec(allowMalformed: true), + Encoding? stdoutEncoding, + Encoding? stderrEncoding, bool echoOutput = false, }) { + stdoutEncoding ??= const Utf8Codec(allowMalformed: true); + stderrEncoding ??= const Utf8Codec(allowMalformed: true); final [executable, ...args] = command.cast(); final result = childProcess.execSync( executable, diff --git a/actions/pubspec.yaml b/actions/pubspec.yaml index 24a544b16e..6e8efdf08f 100644 --- a/actions/pubspec.yaml +++ b/actions/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: js: ^0.6.7 json_annotation: ">=4.8.1 <4.9.0" path: ^1.8.3 - process: ^4.2.4 + process: ^5.0.0 retry: ^3.1.2 source_map_stack_trace: ^2.1.1 source_maps: ^0.10.12