Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Can't delete or query packages with forward slash in their names #9798

Copy link
Copy link

Description

@Skarlso
Issue body actions

Describe the bug

Can't delete or query packages with forward slash in their names

Steps to reproduce the behavior

List packages:

gh api /users/skarlso/packages\?package_type=container --jq '.[].name'
...
ocm/v0.0.1/component-descriptors/github.com/skarlso/ocm-test
ocm/v0.0.2/component-descriptors/github.com/skarlso/ocm-workflow-class
ocm-workflow-class/v0.0.1
ocm/v0.0.1/component-descriptors/github.com/skarlso/ocm-workflow-class
ocm-destination/v0.0.1/component-descriptors/github.com/skarlso/ocm-workflow-class
ocm/component-descriptors/github.com/skarlso/ocm-workflow-class
ocm-destination/component-descriptors/github.com/skarlso/ocm-workflow-class
ocm-replication-test/component-descriptors/github.com/skarlso/ocm-replication-test
ocm-replication-test-example/v0.0.1
ocm-replication/component-descriptors/github.com/skarlso/ocm-replication
ocm-destination/skarlso/ocm-replication-test-example/v0.0.1
ocm-destination/component-descriptors/github.com/skarlso/ocm-replication
ocm-delivery/weaveworksdemos/carts
ocm-delivery/gardener-project/test/jensh007/mongo
ocm-delivery/component-descriptors/github.com/weaveworks/carts
ocm-delivery/weaveworksdemos/catalogue
ocm-delivery/weaveworksdemos/catalogue-db
ocm-delivery/component-descriptors/github.com/weaveworks/catalogue
ocm-delivery/weaveworksdemos/front-end
ocm-delivery/component-descriptors/github.com/weaveworks/front-end
ocm-delivery/weaveworksdemos/orders
ocm-delivery/component-descriptors/github.com/weaveworks/orders
ocm-delivery/weaveworksdemos/payment
ocm-delivery/component-descriptors/github.com/weaveworks/payment
ocm-delivery/weaveworksdemos/queue-master
ocm-delivery/library/rabbitmq
ocm-delivery/kbudde/rabbitmq-exporter
ocm-delivery/library/redis
ocm-delivery/component-descriptors/github.com/weaveworks/queue-master
ocm-delivery/weaveworksdemos/shipping

Query:

gh api -H "Accept: application/vnd.github+json" /users/skarlso/packages/container/ocm-delivery/weaveworksdemos/shipping
...
gh: Not Found (HTTP 404)
{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest",
  "status": "404"
}


## Or

gh api \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  /user/packages/container/ocm-delivery/weaveworksdemos/shipping


gh: Not Found (HTTP 404)
{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest",
  "status": "404"
}

Expected vs actual behavior

A clear and concise description of what you expected to happen and what actually happened.

Logs

Paste the activity from your command line. Redact if needed.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussFeature changes that require discussion primarily among the GitHub CLI teamFeature changes that require discussion primarily among the GitHub CLI teamenhancementa request to improve CLIa request to improve CLIgh-apirelating to the gh api commandrelating to the gh api command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.