Skip to content

Commit 192fc76

Browse files
Copilotoctogonz
andcommitted
Fix PR #5697: add ensureFolderExists, rush change file, and patch version bump
Co-authored-by: octogonz <4673363+octogonz@users.noreply.github.com>
1 parent be8d89a commit 192fc76

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Fix a recent regression that sometimes produced ENOENT errors when installing autoinstallers",
5+
"type": "patch",
6+
"packageName": "@microsoft/rush"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "rushbot@users.noreply.github.com"
11+
}

common/config/rush/version-policies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"policyName": "rush",
104104
"definitionName": "lockStepVersion",
105105
"version": "5.170.0",
106-
"nextBump": "minor",
106+
"nextBump": "patch",
107107
"mainProject": "@microsoft/rush"
108108
}
109109
]

libraries/rush-lib/src/pluginFramework/PluginLoader/AutoinstallerPluginLoader.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ export class AutoinstallerPluginLoader extends PluginLoaderBase<IRushPluginConfi
7373
// Use read+write instead of copy to ensure line endings are normalized
7474
const manifestContent: string = FileSystem.readFile(manifestPath);
7575
FileSystem.writeFile(destinationManifestPath, manifestContent, {
76-
convertLineEndings: NewlineKind.Lf
76+
convertLineEndings: NewlineKind.Lf,
77+
ensureFolderExists: true
7778
});
7879
// Make permission consistent since it will be committed to Git
7980
FileSystem.changePosixModeBits(
@@ -105,7 +106,8 @@ export class AutoinstallerPluginLoader extends PluginLoaderBase<IRushPluginConfi
105106
// Use read+write instead of copy to ensure line endings are normalized
106107
const commandLineContent: string = FileSystem.readFile(commandLineJsonFullFilePath);
107108
FileSystem.writeFile(destinationCommandLineJsonFilePath, commandLineContent, {
108-
convertLineEndings: NewlineKind.Lf
109+
convertLineEndings: NewlineKind.Lf,
110+
ensureFolderExists: true
109111
});
110112
// Make permission consistent since it will be committed to Git
111113
FileSystem.changePosixModeBits(

0 commit comments

Comments
 (0)