Skip to content

Commit

Permalink
Merge pull request #3495 from dbartholomae/set_default_max-install-at…
Browse files Browse the repository at this point in the history
…tempts_to_1

[rush-lib] Set default max install attempts to 1
  • Loading branch information
iclanton committed Jun 27, 2022
2 parents 4b759f4 + f045fa2 commit 5fd4f28
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Reduce default maxInstallAttempts to 1",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ Optional arguments:
a file when using this command.
--max-install-attempts NUMBER
Overrides the default maximum number of install
attempts. The default value is 3.
attempts. The default value is 1.
--ignore-hooks Skips execution of the \\"eventHooks\\" scripts defined
in rush.json. Make sure you know what you are
skipping.
Expand Down Expand Up @@ -1135,7 +1135,7 @@ Optional arguments:
a file when using this command.
--max-install-attempts NUMBER
Overrides the default maximum number of install
attempts. The default value is 3.
attempts. The default value is 1.
--ignore-hooks Skips execution of the \\"eventHooks\\" scripts defined
in rush.json. Make sure you know what you are
skipping.
Expand Down
2 changes: 1 addition & 1 deletion libraries/rush-lib/src/logic/RushConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class RushConstants {
/**
* Number of installation attempts
*/
public static readonly defaultMaxInstallAttempts: number = 3;
public static readonly defaultMaxInstallAttempts: number = 1;

/**
* The filename ("pnpm-lock.yaml") used to store an installation plan for the PNPM package manger
Expand Down

0 comments on commit 5fd4f28

Please sign in to comment.