Skip to content

wspb.go uses deprecated protobuf package #311

Closed

Description

@iamcalledrob

I love the idea of the protobuf helpers in wspb.go, but when trying to use them I noticed that wspb.go imports github.com/golang/protobuf/proto. Since this module is deprecated, this helper can't easily be used in a codebase using the newer protobuf library (google.golang.org/protobuf).

From https://github.com/golang/protobuf:

It has been superseded by the google.golang.org/protobuf module, which contains an updated and simplified API, support for protobuf reflection, and many other improvements. We recommend that new code use the google.golang.org/protobuf module.

It would be wonderful if this import could be switched out to use the newer module 😀

Activity

  1. nhooyr commented on Aug 6, 2021

    @nhooyr
    Contributor

    Oh very nice! Will definitely do in the next major release as it would be a breaking change.

    Though perhaps this also suggests protobuf helpers don't belong in the core package and should be published elsewhere?

  2. ash2k commented on Jun 13, 2023

    @ash2k
    Contributor

    Yes, moving the helpers out e.g. into an example that can be copied or into a separate module would be good to avoid transitive dependencies.

  3. added this to the v1.8.8 milestone on Sep 28, 2023
  4. added 2 commits that reference this issue on Oct 13, 2023
    f40fa34
    825873c
  5. nhooyr commented on Oct 13, 2023

    @nhooyr
    Contributor

    Done in dev.

  6. added a commit that references this issue on Oct 13, 2023
    ac38512
  7. xornet-sl commented on Nov 12, 2023

    @xornet-sl

    Is this a joke? Why wspb - a public package got removed?!
    Guys, you exposed this, people use it, it is NOT an internal package. Why you just brake everything in PATCH release??!!
    I even can not re-create the functionality of wspb as it uses internal package. Why you did that? Was it really a problem just to update the needed dependencies and let it live?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions