SFDO-Tooling / CumulusCI

Python framework for building portable automation for Salesforce projects
http://cumulusci.readthedocs.io
BSD 3-Clause "New" or "Revised" License
357 stars 242 forks source link

Getting None__dev as SFDX Alias #3541

Open Szandor72 opened 1 year ago

Szandor72 commented 1 year ago

Describe the bug

When creating a dev scratch Org, I get the alias None__dev.

I can only fix this by running

cci org scratch dev dev 

I don't really get why this fixes the issue. Can somebody help me to understand?

cci org scratch --help

does not offer any explanation.

@davidmreed suggested to open this as issue/bug

When creating feature or qa orgs, I get the expected alias.

Reproduction steps

  1. Unsure. Might be related to using a projectname with a '-` in it in cumulusci.yml

Your CumulusCI and Python versions

CumulusCI version: 3.73.0 Python version: 3.10.5

Operating System

Windows

Windows environment

PowerShell

CumulusCI installation method

pipx

Error Gist

No response

Additional information

No response

yippie commented 1 year ago

Yea, despite having a project:name all of my scratch orgs created via cci org info <org> are being created with an sfdx org alias of None__<org>

yippie commented 1 year ago

After a little bit of testing, it seems to happen if my project name has - in it. mybestproject works just fine (makes org called myprojectdev). my-best-project however, makes an org called Nonedev.

For sfdx, - is perfectly valid so my-best-project__dev should be allowed

Szandor72 commented 1 year ago

When you say project, do you refer to a) Folder Name b) CumulusCI Project name in cumulusci.yml c) sfdx-project.json

?

I tried using no - at all this time and still end up with None__dev

yippie commented 1 year ago

I am referring to the project name in the CumulusCI.yml file

Szandor72 commented 1 year ago

Thank you. I tried that and on my machine, I still end up with None__dev until I run cci org scratch dev dev.

yippie commented 1 year ago

It must be something else then because now my org name creation is working correctly (including the - in project names)