-
-
Notifications
You must be signed in to change notification settings - Fork 20
Move base files and vendor @sandeepmistry paho mqtt fork #8
Conversation
(until they merge the patch)
|
Wait, why don't you just use the vendor directory? https://golang.org/cmd/go/#hdr-Vendor_Directories |
|
Could we also use a Git submodule for the Paho fork? |
I'm using it 😛 |
|
Yeah but you moved everything into a src/github.com folder. Why? |
|
Ah, I did that because otherwise the vendor directory was not picked up (feel free to refactor the patch completely anyway if you have a better method 😄 ) |
Ran glide init and glide install and glide-vc clean Used the modified paho.mqtt repo
| hash: a50abbf0769838c3d94deba4c500a75d0367d7a65908fb329dee8ce1746d82f9 | ||
| updated: 2017-06-19T10:40:26.984867202+02:00 | ||
| imports: | ||
| - name: github.com/eclipse/paho.mqtt.golang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wrong, we must use the forked one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wouldn't work since the code is still importing github.com/eclipse/paho.mqtt.golang
We are actually using the forked version in the vendor folder (you can check).
It's like this since this is a temporary fork while waiting for an upstream merge. If we were to maintain another fork we should have changed all the imports to github.com/bcmi-labs/paho.mqtt.golang (or wherever the forked repo is).
Just to be clear, if we were to remove the vendor folder and restore it from the lock file, it wouldn't work (as you suspected). But it wouldn't work in any other way :S I'm not sure how we could make it look less wrong.
|
Can we merge it now? |
|
|
(until they merge the patch)
To compile:
clone the repo
Jenkins build is on the go