Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Feat: Allow language parameter on build commands #1253

Closed
petter-eikeland opened this issue Mar 1, 2023 · 3 comments
Closed

Feat: Allow language parameter on build commands #1253

petter-eikeland opened this issue Mar 1, 2023 · 3 comments
Labels
analysis To be decided on how to solution/fix

Comments

@petter-eikeland
Copy link

Describe the bug
Not able to use language parameter which is supported by sfdx package version create on sfpowerscripts build & quickbuild commands

https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_package.htm#cli_reference_force_package_version_create

To Reproduce
Steps to reproduce the behavior:
Run sfdx sfpowerscripts:orchestrator:build -v devhub --branch $(Build.SourceBranch) --diffcheck --buildnumber $(Build.BuildId) -f config/project-scratch-def.json --language no

Get error ERROR running sfpowerscripts:orchestrator:build: Unexpected arguments: --language, no

Expected behavior
Language parameter passed to sfdx package version create command used by sfpowerscripts

Platform Details (please complete the following information):

  • OS: Linux
  • Version [e.g. CLI Version eg: 1.6.6] LATEST (20.20.3)
  • Salesforce CLI(sfdx cli) Version: 7.186.2
  • CI Platform: Azure DevOps

Additional context
Language parameter also useful due to various language bugs in sfdx introduced by Spring 23, MDAPI 57 & sfdx versions 7.182+

@github-actions github-actions bot added the analysis To be decided on how to solution/fix label Mar 1, 2023
@azlam-abdulsalam
Copy link
Contributor

@petter-eikeland is this something that can be controlled using sfdx-project.json?

@petter-eikeland
Copy link
Author

@azlam-abdulsalam I haven't found a parameter in sfdx-project.json that sets the language. And the language param in project-scratch-def.json should override the default language for the build org, but the package version create param sets the language for the package itself if I'm not mistaken
Screenshot 2023-03-03 at 09 55 11

@petter-eikeland
Copy link
Author

Not relevant. Use case was fixed with https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file.htm#scratch_org_definition_file_options

@petter-eikeland petter-eikeland closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
analysis To be decided on how to solution/fix
Projects
None yet
Development

No branches or pull requests

2 participants