Skip to content

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

Open
@lah-wag

Description

@lah-wag

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions