dxatscale / sfpowerscripts

A build system for modular development in Salesforce
https://dxatscale.io
MIT License
213 stars 98 forks source link

Not using "target-dev-hub" and "target-org"! #1387

Open Triopticon opened 1 year ago

Triopticon commented 1 year ago

Describe the bug "sf dependency install" command don't uses config values set for "target-dev-hub" and "target-org". It will throw the error if these values i not set using the flags "targetdevhubusername" and "targetusername" on the command. This is behaviour new in the lates version July23(v23.4.2), and not desirable.

To Reproduce

  1. Set config values for "target-dev-hub" and "target-org" to desired values.
  2. Run the "sf dependency install" command without the flags "targetdevhubusername" and "targetusername".
  3. You get the error: › Error: The following errors occurred: › Missing required flag targetdevhubusername › Missing required flag targetusername › See more help with --help

Expected behavior You shoulfd be able to omit the flags "targetdevhubusername" and "targetusername" on the command and it should use the values given in the config keys: "target-dev-hub" and "target-org"

Platform Details (please complete the following information):

michallachowski commented 1 year ago

I observed the same for pool:fetch and orchestrator:validate commands. It forced me to add --targetdevhubusername parameter to both of them, to be able to use with v23.4.2.