1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-03 08:19:13 +00:00

drop chmod operations, should not be necessary

Bug: https://github.com/dart-lang/sdk/issues/55460
Change-Id: Ic811ff55e4af023ed00e9e2b32b907ef2253114b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363540
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
This commit is contained in:
Jake Macdonald 2024-04-18 16:34:16 +00:00 committed by Commit Queue
parent 7df98cd150
commit d82385e372

View File

@ -141,11 +141,6 @@ class IOPipeline extends Pipeline<IOModularStep> {
var newPath =
stepFolder.uri.resolve(_toFileName(module, dataId)).toFilePath();
await originalFile.copy(newPath);
// If the input was executable, ensure it still is.
var originalMode = (await originalFile.stat()).modeString();
if (originalMode.contains('x')) {
await Process.run('chmod', [originalMode, newPath]);
}
}
}
if (step.needsSources) {
@ -172,11 +167,6 @@ class IOPipeline extends Pipeline<IOModularStep> {
.resolve(_toFileName(module, dataId, configSpecific: true))
.toFilePath();
await outputFile.copy(newPath);
// If the output was executable, ensure it still is.
var originalMode = (await outputFile.stat()).modeString();
if (originalMode.contains('x')) {
await Process.run('chmod', [originalMode, newPath]);
}
}
await stepFolder.delete(recursive: true);
}