Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(env): support more SF_ source-tracking vars #1132

Merged
merged 3 commits into from
Sep 4, 2024
Merged
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
4 changes: 4 additions & 0 deletions messages/envVars.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ Set to true to disable the auto-update feature of Salesforce CLI. Default value

Set to true to disable polling of your org’s SourceMember object when you run the force:source:push|pull commands. Default value is false.

# sfdxSourceTrackingBatchSize

Number of source-tracked file updates to batch after a deploy or retrieve. The default value is 8,000 (Windows) or 15,000 (Linux/macOS).

# sfdxDisableTelemetry

Set to true to disable Salesforce CLI from collecting usage information, user environment information, and crash reports. Default value is false. Overrides the disableTelemetry configration variable.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@salesforce/core",
"version": "8.5.1",
"version": "8.5.3",
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
"main": "lib/index",
"types": "lib/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions src/config/envVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export enum EnvironmentVariable {
'SFDX_DISABLE_AUTOUPDATE' = 'SFDX_DISABLE_AUTOUPDATE',
'SFDX_AUTOUPDATE_DISABLE' = 'SFDX_AUTOUPDATE_DISABLE',
'SFDX_DISABLE_SOURCE_MEMBER_POLLING' = 'SFDX_DISABLE_SOURCE_MEMBER_POLLING',
'SFDX_SOURCE_TRACKING_BATCH_SIZE' = 'SFDX_SOURCE_TRACKING_BATCH_SIZE',
'SFDX_DISABLE_TELEMETRY' = 'SFDX_DISABLE_TELEMETRY',
'SFDX_DNS_TIMEOUT' = 'SFDX_DNS_TIMEOUT',
'SFDX_DOMAIN_RETRY' = 'SFDX_DOMAIN_RETRY',
Expand Down Expand Up @@ -82,6 +83,7 @@ export enum EnvironmentVariable {
'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE' = 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE',
'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE' = 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE',
'SF_SOURCE_MEMBER_POLLING_TIMEOUT' = 'SF_SOURCE_MEMBER_POLLING_TIMEOUT',
'SF_SOURCE_TRACKING_BATCH_SIZE' = 'SF_SOURCE_TRACKING_BATCH_SIZE',
'SF_USE_GENERIC_UNIX_KEYCHAIN' = 'SF_USE_GENERIC_UNIX_KEYCHAIN',
'SF_USE_PROGRESS_BAR' = 'SF_USE_PROGRESS_BAR',
'SF_LAZY_LOAD_MODULES' = 'SF_LAZY_LOAD_MODULES',
Expand Down Expand Up @@ -170,6 +172,10 @@ export const SUPPORTED_ENV_VARS: EnvType = {
description: getMessage(EnvironmentVariable.SFDX_DISABLE_SOURCE_MEMBER_POLLING),
synonymOf: EnvironmentVariable.SF_DISABLE_SOURCE_MEMBER_POLLING,
},
[EnvironmentVariable.SFDX_SOURCE_TRACKING_BATCH_SIZE]: {
description: getMessage(EnvironmentVariable.SFDX_SOURCE_TRACKING_BATCH_SIZE),
synonymOf: EnvironmentVariable.SF_SOURCE_TRACKING_BATCH_SIZE,
},
[EnvironmentVariable.SFDX_DISABLE_TELEMETRY]: {
description: getMessage(EnvironmentVariable.SFDX_DISABLE_TELEMETRY),
synonymOf: EnvironmentVariable.SF_DISABLE_TELEMETRY,
Expand Down Expand Up @@ -310,6 +316,10 @@ export const SUPPORTED_ENV_VARS: EnvType = {
description: getMessage(EnvironmentVariable.SF_DISABLE_SOURCE_MEMBER_POLLING),
synonymOf: null,
},
[EnvironmentVariable.SF_SOURCE_TRACKING_BATCH_SIZE]: {
description: getMessage(EnvironmentVariable.SFDX_SOURCE_TRACKING_BATCH_SIZE),
synonymOf: null,
},
[EnvironmentVariable.SF_DISABLE_TELEMETRY]: {
description: getMessage(EnvironmentVariable.SF_DISABLE_TELEMETRY),
synonymOf: null,
Expand Down
Loading