Skip to content

[BUG] Renamed packages should redirect to the new name #268

@savetheclocktower

Description

@savetheclocktower

(Couldn't decide between “feature” and “bug,” so I flipped a coin.)

What is the Bug
We support the renaming of a package, but this only seems to point the GitHub repo to a new name. It effectively “orphans” the old name and its subscribers.

Instead, the old name should function as an “alias” for the new name. Consider a package renamed from old-name to new-name; when Pulsar checks what the latest version of old-name is, it should get the same result as if it had asked what the newest version of new-name is. The package “card” in Pulsar can show the new name, but otherwise nothing else would have to change about the repo on the user's machine; it could still exist at ~/.pulsar/packages/old-name without any problem.

I'm pretty sure this would be seamless. An edge case would be if the user explicitly searched for new-name; ideally they'd get the new-name result and Pulsar would know that it was already installed.

How to Replicate the Bug
Check out these search results. They reflect both the original name of a package and what I renamed it to.

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