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

Full Deployment is Triggered when using dotenv files instead of single file[Custom label] #3126

Open
pjha06 opened this issue Nov 21, 2024 · 6 comments
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@pjha06
Copy link

pjha06 commented Nov 21, 2024

when i run the below command to deploy customlabels it triggers full deployment of all components under force-app/main/default folder
dotenv -e .envINT -e .envQA sf project deploy start --target-org Whpnarcsint --source-dir force-app\main\default\labels\CustomLabels.labels-meta.xml

Please find attached ZIP file containing metadata where replacements will be done,sfdx-project.jsona nd .env files

consolidatedfiles.zip

Also if you could help me with some videos or materials to test the String replacements without actually doing deployment.

@pjha06 pjha06 added the investigating We're actively investigating this issue label Nov 21, 2024
Copy link

Hello @pjha06 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Nov 21, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@pjha06
Copy link
Author

pjha06 commented Nov 21, 2024

Please find cli version details:{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.58.7",
"nodeVersion": "node-v20.17.0",
"osVersion": "Windows_NT 10.0.22631",
"rootPath": "C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.58.7-ed27925",
"shell": "powershell",
"pluginVersions": [
"@dxatscale/sfpowerscripts 25.5.3 (user) published 362 days ago (Sat Nov 25 2023)",
"@oclif/plugin-autocomplete 3.2.2 (core)",
"@oclif/plugin-commands 3.3.4 (user) published 194 days ago (Sat May 11 2024) (latest is 4.1.10)",
"@oclif/plugin-help 5.2.17 (user) published 467 days ago (Sat Aug 12 2023) (latest is 6.2.18)",
"@oclif/plugin-not-found 3.2.18 (core)",
"@oclif/plugin-plugins 5.4.6 (core)",
"@oclif/plugin-search 1.2.7 (core)",
"@oclif/plugin-update 4.5.5 (core)",
"@oclif/plugin-version 2.2.11 (core)",
"@oclif/plugin-warn-if-update-available 3.1.13 (core)",
"@oclif/plugin-which 3.2.12 (core)",
"@salesforce/cli 2.58.7 (core)",
"apex 3.4.8 (core)",
"api 1.2.1 (core)",
"auth 3.6.54 (core)",
"data 3.6.5 (core)",
"deploy-retrieve 3.12.3 (core)",
"info 3.4.3 (core)",
"limits 3.3.29 (core)",
"marketplace 1.2.25 (core)",
"org 4.5.7 (core)",
"packaging 1.22.1 (user) published 469 days ago (Thu Aug 10 2023) (latest is 2.9.3)",
"schema 3.3.26 (core)",
"settings 2.3.16 (core)",
"signups 2.5.12 (user) published 81 days ago (Sun Sep 01 2024) (latest is 2.6.3)",
"sobject 1.4.33 (core)",
"source 3.5.18 (core)",
"telemetry 3.6.10 (core)",
"templates 56.3.17 (core)",
"trust 3.7.27 (core)",
"user 3.5.29 (core)",
"@salesforce/sfdx-scanner 4.6.0 (user) published 57 days ago (Tue Sep 24 2024) (latest is 4.7.0)",
"lightning-flow-scanner 2.34.0 (user) published 88 days ago (Sun Aug 25 2024) (latest is 2.36.0)",
"sfdx-git-delta 5.49.0 (user) published 33 days ago (Sat Oct 19 2024) (latest is 5.49.4)"
]
}

Copy link

Hello @pjha06 👋 None of the versions of sf you shared match the latest release.

Shared: 2.58.7
Latest: 2.67.7

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

@pjha06
Copy link
Author

pjha06 commented Nov 21, 2024

{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.67.7",
"nodeVersion": "node-v22.11.0",
"osVersion": "Windows_NT 10.0.22631",
"rootPath": "C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.67.7-3acb081",
"shell": "powershell",
"pluginVersions": [
"@dxatscale/sfpowerscripts 25.5.3 (user) published 362 days ago (Sat Nov 25 2023)",
"@oclif/plugin-autocomplete 3.2.8 (core)",
"@oclif/plugin-commands 3.3.4 (user) published 194 days ago (Sat May 11 2024) (latest is 4.1.10)",
"@oclif/plugin-help 5.2.17 (user) published 467 days ago (Sat Aug 12 2023) (latest is 6.2.18)",
"@oclif/plugin-not-found 3.2.25 (core)",
"@oclif/plugin-plugins 5.4.15 (core)",
"@oclif/plugin-search 1.2.14 (core)",
"@oclif/plugin-update 4.6.10 (core)",
"@oclif/plugin-version 2.2.15 (core)",
"@oclif/plugin-warn-if-update-available 3.1.21 (core)",
"@oclif/plugin-which 3.2.17 (core)",
"@salesforce/cli 2.67.7 (core)",
"apex 3.6.2 (core)",
"api 1.3.2 (core)",
"auth 3.6.73 (core)",
"data 3.11.3 (core)",
"deploy-retrieve 3.15.11 (core)",
"info 3.4.18 (core)",
"limits 3.3.39 (core)",
"marketplace 1.3.4 (core)",
"org 5.1.4 (core)",
"packaging 1.22.1 (user) published 469 days ago (Thu Aug 10 2023) (latest is 2.9.3)",
"schema 3.3.40 (core)",
"settings 2.4.4 (core)",
"signups 2.6.1 (user) published 19 days ago (Sat Nov 02 2024) (latest is 2.6.3)",
"sobject 1.4.45 (core)",
"telemetry 3.6.20 (core)",
"templates 56.3.29 (core)",
"trust 3.7.41 (core)",
"user 3.6.2 (core)",
"@salesforce/sfdx-scanner 4.7.0 (user) published 22 days ago (Tue Oct 29 2024)",
"lightning-flow-scanner 2.36.0 (user) published 5 days ago (Sat Nov 16 2024)",
"sfdx-git-delta 5.49.0 (user) published 33 days ago (Sat Oct 19 2024) (latest is 5.49.4)"
]
}

@github-actions github-actions bot added validated Version information for this issue has been validated investigating We're actively investigating this issue and removed more information required Issue requires more information or a response from the customer labels Nov 21, 2024
@WillieRuemmele
Copy link
Member

hi @pjha06 - I'm unsure about why it would deploy more than what was specified in the filepath, but for testing string replacements, see this and specifically Test String Replacements towards the bottom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

2 participants