Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Fix a recent regression that sometimes produced ENOENT errors when installing autoinstallers",
"type": "patch",
"packageName": "@microsoft/rush"
}
],
"packageName": "@microsoft/rush",
"email": "rushbot@users.noreply.github.com"
}
2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"policyName": "rush",
"definitionName": "lockStepVersion",
"version": "5.170.0",
"nextBump": "minor",
"nextBump": "patch",
"mainProject": "@microsoft/rush"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export class AutoinstallerPluginLoader extends PluginLoaderBase<IRushPluginConfi
// Use read+write instead of copy to ensure line endings are normalized
const manifestContent: string = FileSystem.readFile(manifestPath);
FileSystem.writeFile(destinationManifestPath, manifestContent, {
convertLineEndings: NewlineKind.Lf
convertLineEndings: NewlineKind.Lf,
ensureFolderExists: true
});
// Make permission consistent since it will be committed to Git
FileSystem.changePosixModeBits(
Expand Down Expand Up @@ -105,7 +106,8 @@ export class AutoinstallerPluginLoader extends PluginLoaderBase<IRushPluginConfi
// Use read+write instead of copy to ensure line endings are normalized
const commandLineContent: string = FileSystem.readFile(commandLineJsonFullFilePath);
FileSystem.writeFile(destinationCommandLineJsonFilePath, commandLineContent, {
convertLineEndings: NewlineKind.Lf
convertLineEndings: NewlineKind.Lf,
ensureFolderExists: true
});
// Make permission consistent since it will be committed to Git
FileSystem.changePosixModeBits(
Expand Down
Loading