Skip to content

Commit 79a79d7

Browse files
dependabot[bot]Dillon Nys
andauthored
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] <[email protected]> * chore(actions): Update process manager interface For conformance to `package:process` v5. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dillon Nys <[email protected]>
1 parent 9f4976b commit 79a79d7

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

actions/lib/src/node/process_manager.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ final class NodeProcessManager implements Closeable, ProcessManager {
4949
Map<String, String>? environment,
5050
bool includeParentEnvironment = true,
5151
bool runInShell = false,
52-
Encoding stdoutEncoding = const Utf8Codec(allowMalformed: true),
53-
Encoding stderrEncoding = const Utf8Codec(allowMalformed: true),
52+
Encoding? stdoutEncoding,
53+
Encoding? stderrEncoding,
5454
NodeChildProcess? pipe,
5555
bool echoOutput = false,
5656
}) async {
57+
stdoutEncoding ??= const Utf8Codec(allowMalformed: true);
58+
stderrEncoding ??= const Utf8Codec(allowMalformed: true);
5759
final process = await start(
5860
command,
5961
workingDirectory: workingDirectory,
@@ -101,10 +103,12 @@ final class NodeProcessManager implements Closeable, ProcessManager {
101103
Map<String, String>? environment,
102104
bool includeParentEnvironment = true,
103105
bool runInShell = false,
104-
Encoding stdoutEncoding = const Utf8Codec(allowMalformed: true),
105-
Encoding stderrEncoding = const Utf8Codec(allowMalformed: true),
106+
Encoding? stdoutEncoding,
107+
Encoding? stderrEncoding,
106108
bool echoOutput = false,
107109
}) {
110+
stdoutEncoding ??= const Utf8Codec(allowMalformed: true);
111+
stderrEncoding ??= const Utf8Codec(allowMalformed: true);
108112
final [executable, ...args] = command.cast<String>();
109113
final result = childProcess.execSync(
110114
executable,

actions/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
js: ^0.6.7
1313
json_annotation: ">=4.8.1 <4.9.0"
1414
path: ^1.8.3
15-
process: ^4.2.4
15+
process: ^5.0.0
1616
retry: ^3.1.2
1717
source_map_stack_trace: ^2.1.1
1818
source_maps: ^0.10.12

0 commit comments

Comments
 (0)