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

Error: HttpError: You cannot delete the last version of a package. You must delete the package instead. #33

Closed
skin27 opened this issue Sep 8, 2023 · 3 comments · Fixed by #35
Labels
enhancement New feature or request

Comments

@skin27
Copy link

skin27 commented Sep 8, 2023

If I add a new package and there is only one version yet I get the following error for the GitHub API:

"Error: HttpError: You cannot delete the last version of a package. You must delete the package instead."

In this case it's OK for me to delete the whole package

@rubengees
Copy link
Member

This is something this action does not support yet. I guess it would be possible, but needs explicit handling. I'm marking this as a feature request.

@rubengees rubengees added the enhancement New feature or request label Sep 11, 2023
tisoft added a commit to advanova/delete-old-packages that referenced this issue Oct 26, 2023
tisoft added a commit to advanova/delete-old-packages that referenced this issue Oct 26, 2023
@tisoft
Copy link
Contributor

tisoft commented Oct 26, 2023

I ran into the same issue and have created a PR to fix it.

@rubengees
Copy link
Member

@tisoft Thanks! I'll try to review the PR (and the others you've created) this week 🙂

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

Successfully merging a pull request may close this issue.

3 participants