Comments (5)
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.
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.
https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher
from server.
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.
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)
- How to send topics posted by specific users only to specific subscribed users? HOT 11
- Does peddle perssistant released? HOT 5
- MQTTX cannot use Topic Alias. MQTT5.0 主题别名发送卡住,无法发布主题别名的消息 HOT 2
- How to use the new pessistent hook? HOT 1
- Reload auth fIle on the run HOT 2
- InlineClient模式下服务端订阅问题,inline subscribers do not receive messages HOT 5
- Merge 2 version of storm HOT 4
- Add Support for Disconnect With Will Message Reason Code
- Logging Level is not Configurable Via File Configuration
- Persistence storage did not work with SetCleanSession(false) HOT 3
- Don't allow inheriting session unless username matches HOT 5
- MessageExpiry Hook HOT 4
- OnConnectAuthenticate cannot specify an error code (like Client Identifier not valid)
- Resend timeout inflight messages
- Bug in inflight message restore from datastore HOT 2
- Proposal: Add an Example for Custom Hook Usage HOT 2
- can I use mqtts ? HOT 2
- OCSP Stapling support ? HOT 1
- Metrics HOT 4
- MQTT bridge HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.