-
Notifications
You must be signed in to change notification settings - Fork 232
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
init command produces various error messages, cannot complete #495
Comments
Interesting error
error, that's pretty standard, although maybe something we should handle/communicate better. The TL;DR is that the first time an orb is initialised and the |
@mattwelke Curious if you installed the CLI via |
I tried first with the snap, and it didn't even get this far. With the snap, I encountered #491. Switching to the binary let me get past that error, so that I could progress this far and encounter this error. |
I'm happy to test again because I'll be working mostly on CircleCI and orbs this week. Just let me know. |
Second error is being taken care of in #503 - just need better messaging/handling when the context already exists. Ideally one would pick "no" if it already existed, but it's possible it's not known whether it already exists. |
Hi @mattwelke Did you not experience this new issue : #491 (comment) ? |
I actually finished up with my CircleCI work early and so I haven't revisited this since originally opening this issue. I haven't run any commands to see if there are any new errors produced. It looks like you already reported it in that issue, so I'd say that's all you can do for now. |
I also had the error: ? Enter the remote git repository [email protected]:kohirens/<repo-name-here>-orb.git
Thank you! Setting up your orb...
Error: author field is required In my case I did not have It would help to get back the error that git is giving when the circleci CLI tries to run git commands and they fail. I had my Regardless of the case, it would be nice for the error to indicate that the user.email was not set for the repository that the orb makes. |
Hey @gmemstr , looks like I'm experiencing this issue as well. |
I've just encountered this. There seems to be a general pattern of the "orb init" code unsafely assuming that all resources it wants to exist don't already exist. That means that it can only ever be run in a totally clean environment, that it can never be re-run etc. |
This is probably the worst GitHub issue title I've ever written. :P The reason is because there were multiple issues I encountered. I'll do my best to describe them below. Someone with more context on CircleCI is free to rename this issue if they would like to.
Meta:
CircleCI CLI Version:
0.1.10993+cb3ba09 (release)
Operating System:
Ubuntu 19.10
CircleCI CLI Diagnostic:
CircleCI CLI Diagnostics
Debugger mode: false
Config found: /home/matt/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API...
Ok.
Hello, Matt Welke.
Current behavior:
Interactive prompts cease after I enter my GitHub repo URL and hit enter, at which point an error is also displayed:
And, when I delete the directory that was created and then try the init command again, it stops at the same spot, and a different error is displayed:
And when I try to finish it manually, reading the docs, by running
git init
,git remote add origin <url>
,git add
,git commit
, and thengit push origin master
, following the project manually on the CircleCI UI (clicking "start building"), the CircleCI UI shows an error saying it can't build it:Expected behavior:
No errors are output during the interactive steps. If an error occurs, the interactive process is able to be run from the beginning again cleanly.
When did this begin / Was this previously working?:
This have never been working for me. This is my first experience with authoring CircleCI orbs.
The text was updated successfully, but these errors were encountered: