I recently created a small library in a GitHub hosted repository:
https://github.com/ardnew/byte_order
Several versions of this package — 0.2.1
, 0.2.0
, 0.1.3
, 0.1.2
— were published to the PlatformIO registry.
An underscore was used originally for consistency with a class identifier, but in the end was I able to omit all underscores from class names.
And because I loathe underscores with an inordinate passion, I tried to rename the repository and published packages to byte-order
as follows:
# Use the GitHub CLI tool to rename repo
gh repo rename byte-order
# Make local edits, rev to 0.3.0, commit and release
git commit [...]
gh release create v0.3.0 [...]
# Publish the latest version 0.3.0 to PlatformIO registry
pio pkg publish
Observe there are now dup packages in registry:
- old:
ardnew/byte_order
- new:
ardnew/byte-order
# Unpublish all previously-published packages
pio pkg unpublish ardnew/byte_order@0.2.1
Package version has been successfully removed from the registry
pio pkg unpublish ardnew/byte_order@0.2.0
Package version has been successfully removed from the registry
pio pkg unpublish ardnew/byte_order@0.1.3
Package version has been successfully removed from the registry
pio pkg unpublish ardnew/byte_order@0.1.2
Package version has been successfully removed from the registry
Now when I search (pio pkg search byte\*order
) I still see dup packages. For some reason it is retaining version 0.2.0:
ardnew/byte_order
Library • 0.2.0 • Published on Sun Apr 14 05:03:07 2024
C++ constexpr header library to convert byte order of arbitrary types
ardnew/byte-order
Library • 0.3.0 • Published on Sun Apr 14 19:15:31 2024
C++ constexpr header library to convert byte order of arbitrary types
I can try to unpublish it again, but it fails:
pio pkg unpublish ardnew/byte_order@0.2.0
HTTPClientError: Package version is already unpublished in the registry!
pio pkg unpublish ardnew/byte_order
HTTPClientError: Version 'None' not found
Am I doing something wrong? Can someone remove the older package named ardnew/byte_order
?
Thanks!