Giter Site home page Giter Site logo

Comments (9)

cyrusradfar avatar cyrusradfar commented on June 1, 2024 4

Hey @bjohnso5 and @juanantoniocid, let me look into this.

from rollbar-go.

juanantoniocid avatar juanantoniocid commented on June 1, 2024

The New() function defined in client.go is intended to return the default implementation of a Client, but then you return a value whose type is not exported. It has broken our code (it is supposed a patch version change shouldn't break anything).

What is the purpose of New() if it is not used internally and the returned value is not exported?

from rollbar-go.

pawelsz-rb avatar pawelsz-rb commented on June 1, 2024

I think the idea was to use rollbar package directly (from rollbar.go) without instantiating the Client directly. So to me, using exported methods from rollbar.go together with exported methods from client.go does not make much sense. But if a lot of people are using Client directly and skip the stuff from rollbar.go then I am willing to revert the change and rerelease.

from rollbar-go.

pawelsz-rb avatar pawelsz-rb commented on June 1, 2024

I have reverted the change for private client and rereleased v1.4.3. Sorry about that breaking change, I guess my assumption was incorrect and it's too late to change anything now.

from rollbar-go.

pawelsz-rb avatar pawelsz-rb commented on June 1, 2024

closing for now, but please let me know if there are any problems. thank you

from rollbar-go.

juanantoniocid avatar juanantoniocid commented on June 1, 2024

I have reverted the change for private client and rereleased v1.4.3. Sorry about that breaking change, I guess my assumption was incorrect and it's too late to change anything now.

No worries @pawelsz-rb and thanks a lot for handling it so fast!

from rollbar-go.

bjohnso5 avatar bjohnso5 commented on June 1, 2024

@pawelsz-rb I think we might need a new 1.4.4 release to actually propagate this change, when I clear my go mod cache and re-download 1.4.3, I still get the version with the unexported rollbar.client struct

from rollbar-go.

pete-woods avatar pete-woods commented on June 1, 2024

That's correct, it's basically impossible to re-release a Go module version (Google's module cache prevents it)

from rollbar-go.

pawelsz-rb avatar pawelsz-rb commented on June 1, 2024

v1.4.4 released, thx!

from rollbar-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.