Skip to content

Commit e24d843

Browse files
committed
Enable the chmod normalization by default. Use the flag to disable.
1 parent 1df63cf commit e24d843

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

apps/rush-lib/src/api/ExperimentsConfiguration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export interface IExperimentsJson {
2121
legacyIncrementalBuildDependencyDetection?: boolean;
2222

2323
/**
24-
* If true, the chmod field in temporary project tar headers will be set to 755.
25-
* This can help ensure consistent tarball integrity across platforms.
24+
* If true, the chmod field in temporary project tar headers will not be normalized.
25+
* This normalization can help ensure consistent tarball integrity across platforms.
2626
*/
27-
normalizeChmodFieldInTarHeader?: boolean;
27+
noChmodFieldInTarHeaderNormalization?: boolean;
2828
}
2929

3030
/**

apps/rush-lib/src/logic/InstallManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,8 @@ export class InstallManager {
746746
sync: true,
747747
prefix: npmPackageFolder,
748748
filter: (path: string, stat: tar.FileStat): boolean => {
749-
if (this._rushConfiguration.experimentsConfiguration.configuration
750-
.normalizeChmodFieldInTarHeader) {
749+
if (!this._rushConfiguration.experimentsConfiguration.configuration
750+
.noChmodFieldInTarHeaderNormalization) {
751751

752752
stat.mode = (stat.mode & ~0x1FF) | PosixModeBits.AllRead | PosixModeBits.UserWrite
753753
| PosixModeBits.AllExecute;

apps/rush-lib/src/schemas/experiments.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"type": "boolean"
1616
},
1717

18-
"normalizeChmodFieldInTarHeader": {
19-
"description": "If true, the chmod field in temporary project tar headers will be set to 755. This can help ensure consistent tarball integrity across platforms.",
18+
"noChmodFieldInTarHeaderNormalization": {
19+
"description": "If true, the chmod field in temporary project tar headers will not be normalized. This normalization can help ensure consistent tarball integrity across platforms.",
2020
"type": "boolean"
2121
}
2222
},

common/reviews/api/rush-lib.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export interface IConfigurationEnvironmentVariable {
134134
// @beta
135135
export interface IExperimentsJson {
136136
legacyIncrementalBuildDependencyDetection?: boolean;
137-
normalizeChmodFieldInTarHeader?: boolean;
137+
noChmodFieldInTarHeaderNormalization?: boolean;
138138
}
139139

140140
// @public

0 commit comments

Comments
 (0)