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

'orb init' fails with json unmarshalling error "cannot unmarshal object into Go value of type []cmd.orbProtectTemplateRelease" #1087

Open
lah-wag opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lah-wag
Copy link

lah-wag commented Dec 4, 2024

Meta:

CircleCI CLI Version:
0.1.31151+591d7b2 (homebrew)

Operating System:
Arm64 MacOS 15.1

CircleCI CLI Diagnostic:

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /Users/username/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API... 
Ok.

Current behavior:

The cli doesn't initialize a new orb.

$ circleci orb init packages/my-orb --private  
Once an orb is created it cannot be deleted. Orbs are semver compliant, and each published version is immutable. Publicly released orbs are potential dependencies for other projects.
Therefore, allowing orb deletion would make users susceptible to unexpected loss of functionality.
? Would you like to perform an automated setup of this orb? No, just download the template.
Downloading Orb Project Template into packages/my-orb
Error: Unexpected error: json: cannot unmarshal object into Go value of type []cmd.orbProtectTemplateRelease

Expected behavior:

A new orb should be initialized.

When did this begin / Was this previously working?:

It has worked previously - don't know when it started failing, as I don't create many new orbs from.

Additional Information:

@lah-wag lah-wag added the bug Something isn't working label Dec 4, 2024
@lah-wag lah-wag changed the title 'orb init' failes with json unmarshalling error "cannot unmarshal object into Go value of type []cmd.orbProtectTemplateRelease" 'orb init' fails with json unmarshalling error "cannot unmarshal object into Go value of type []cmd.orbProtectTemplateRelease" Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant