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

If project name is taken, sem init fails with error, leaving user without next steps #116

Open
markoa opened this issue Nov 26, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@markoa
Copy link

markoa commented Nov 26, 2018

$ sem init
error: http status 422 with message "{"message":"project name \"project-name\" is already taken"}" received from upstream

so what to do next...?

@shiroyasha shiroyasha self-assigned this Nov 26, 2018
@shiroyasha
Copy link
Contributor

proposal 1 (help message)

$ sem init
error: project name "project-name" is taken

Set up project with an alternative name with: sem init --project-name [NAME].

pros: clean, no ugly names, prevents accidental duplicate projects
cons: it requires more typing, and reading the output

proposal 2 (automatic alternative name)

$ sem init
Project `project-name-2` created. Run your first pipeline with:

  git add .semaphore/sem....

pros: fast
cons: Maybe I don't want to create this project again if it is already registered. I need to manually change project name from project-name-1, to something I like.

I vote for (proposal 1), it is cleaner, and more predictable in scripts.

@markoa
Copy link
Author

markoa commented Nov 26, 2018

I'd also go with no. 1 but also add a second suggestion to delete the old project. In my case I simply forgot that it exists, so I did that...

Suggestions:

- Set up a project with another name:
    sem init --project-name [NAME]

- Delete the existing project and try again:
    sem delete project typed-name

@shiroyasha shiroyasha added the enhancement New feature or request label Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants