CircleCI-Archived / orb-starter-kit

A starter kit for new orb authors
https://circleci.com/orbs
MIT License
27 stars 23 forks source link

[BUG] Namespace and orb creation runs in a loop in orb-init.sh #41

Closed mvxt closed 3 years ago

mvxt commented 4 years ago

Orb Version N/A - Following instructions in README to initialize a new orb. Latest revision as of this writing is 679b1b6.

Describe the bug Script runs in a perpetual loop asking user to create a namespace and then an orb in that namespace.

Branch 'master' set up to track remote branch 'master' from 'origin'.
Switching to Alpha branch
Switched to a new branch 'Alpha'

Select your Orb namespace.
Each organization/user may claim ONE UNIQUE namespace.

Ensure the name you choose is intended for the mvxt organization, this CAN NOT be changed later.

You may see an error if you have already previously claimed this namespace in the past. This can safely be ignored for now.

Enter Namespace:

Namespace missing. Try again
Select your Orb namespace.
Each organization/user may claim ONE UNIQUE namespace.

Ensure the name you choose is intended for the mvxt organization, this CAN NOT be changed later.

You may see an error if you have already previously claimed this namespace in the past. This can safely be ignored for now.

Enter Namespace: mvxt

You are creating a namespace called "mvxt".

This is the only namespace permitted for your github organization, mvxt.
To change the namespace, you will have to contact CircleCI customer support.

✔ Are you sure you wish to create the namespace: `mvxt`: y
Error: Organizations may only create one namespace. This organization owns the following namespace: "mvxt"

Select your Orb Name. Your Orb will live at mvxt/{ORB NAME}
Enter Orb Name: git-lfs-orb

Orb mvxt/git-lfs-orb selected
Creating Orb
You are creating an orb called "mvxt/git-lfs-orb".
You will not be able to change the name of this orb.
If you change your mind about the name, you will have to create a new orb with the new name.

✔ Are you sure you wish to create the orb: `mvxt/git-lfs-orb`: y
Orb `mvxt/git-lfs-orb` created.

Please note that any versions you publish of this orb are world-readable.

You can now register versions of `mvxt/git-lfs-orb` using `circleci orb publish`.
You are creating a namespace called "mvxt".

This is the only namespace permitted for your github organization, mvxt.
To change the namespace, you will have to contact CircleCI customer support.

✔ Are you sure you wish to create the namespace: `mvxt`: y
Error: Organizations may only create one namespace. This organization owns the following namespace: "mvxt"

Select your Orb Name. Your Orb will live at mvxt/{ORB NAME}
Enter Orb Name:

To Reproduce Follow steps in README to clone this repo, create a new empty one for the orb, and then execute init.sh.

Expected behavior Should only ask once.

gmemstr commented 3 years ago

We are phasing out this repository in favour of the new orb init command included in the CLI and https://github.com/CircleCI-Public/Orb-Project-Template.