Code Monkey home page Code Monkey logo

Comments (5)

mochi-co avatar mochi-co commented on August 28, 2024 1

It appears this is the correct way things work now once you move to go versioning for v2 or above: you have to import "github.com/mochi-co/mqtt/v2" and then go mod tidy to get the latest v2 version.

I have tested this against https://github.com/hajimehoshi/ebiten and https://github.com/go-redis/redis both have the same issue when trying to go get with @latest, so I will close this for now. I have reached out for advice and will try to fix the @latest issue if there is a solution.

from server.

mochi-co avatar mochi-co commented on August 28, 2024

Looks like it's related to golang/go#35732 (eg. prometheus/prometheus#8852). This is unexpected - researching solution now. Let me know if you have any ideas 👍🏻

from server.

mochi-co avatar mochi-co commented on August 28, 2024

https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher

from server.

mochi-co avatar mochi-co commented on August 28, 2024

v2.0.1 should now be pointing to github.com/mochi-co/mqtt/v2 - it doesn't seem to import on my machine, I still get the following error:

% go mod tidy
go: finding module for package github.com/mochi-co/mqtt/v2
go: finding module for package github.com/mochi-co/mqtt/v2/listeners
go: finding module for package github.com/mochi-co/mqtt/v2/hooks/auth
github.com/mochi-co/tmp imports
        github.com/mochi-co/mqtt/v2: module github.com/mochi-co/mqtt@latest found (v1.3.2), but does not contain package github.com/mochi-co/mqtt/v2
github.com/mochi-co/tmp imports
        github.com/mochi-co/mqtt/v2/hooks/auth: module github.com/mochi-co/mqtt@latest found (v1.3.2), but does not contain package github.com/mochi-co/mqtt/v2/hooks/auth
github.com/mochi-co/tmp imports
        github.com/mochi-co/mqtt/v2/listeners: module github.com/mochi-co/mqtt@latest found (v1.3.2), but does not contain package github.com/mochi-co/mqtt/v2/listeners

from server.

mochi-co avatar mochi-co commented on August 28, 2024

Using go mod tidy with github.com/mochi-co/mqtt/v2 imports now appears to pull the correct release, but @latest still seems to be pointing to v1.3.2 for some reason.

% go get -v github.com/mochi-co/mqtt@latest
go: added github.com/mochi-co/mqtt v1.3.2

from server.

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.