Skip to content

Upgrading broken due to vanity rename #464

Closed

Description

@andig

From #462:

This will create easily solved breakage on updates but I figure it's best to pull the band aid off as early as possible

They are easily resolvable only by adding replace directives afaikt, at least if downstream modules depend on it. As a result, this will break everybody's go.mod and will make everybody wait for downstream updates. There is no obvious reason for pulling of the "band aid".

It would imho have been much better to not update the module name. Given it is a vanity name anyway there's absolutely no need for doing so. If a rename is needed it should be for a new start instead of breaking the vanity import.

I'd suggest to retract this version and decide either way. The current solution is the worst possible. At least the vanity import should continue forwarding to the old repo.

Activity

  1. nhooyr commented on Aug 10, 2024

    @nhooyr
    Contributor

    Great point @andig

    Sorry for the trouble. Here's what we changed in response:

    nhooyr.io/websocket now points to https://github.com/nhooyr/websocket-old/releases/tag/v1.8.16 which is marked as deprecated at the package level & all exported symbols so that people know to transition off it.

    There will be no further updates or breakage on nhooyr.io/websocket

    github.com/coder/websocket is an entirely separate module now.

    Thanks for opening the issue.

  2. nhooyr commented on Aug 10, 2024

    @nhooyr
    Contributor
  3. andig commented on Aug 11, 2024

    @andig
    Author

    Thank you. Did a quick go get -u:

    go: upgraded nhooyr.io/websocket v1.8.11 => v1.8.17
    

    This seems great, especially since https://nhooyr.io/websocket points to Coder now. Thank you for changing this so quickly and making developer's life a bit easier!

  4. mafredri commented on Aug 15, 2024

    @mafredri
    Member

    Thanks for handling this so quickly @nhooyr and @andig I'm glad this works more conveniently now. Closing, but feel free to re-open if there are still any issues remaining.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions