Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Conversation

@facchinm
Copy link
Member

(until they merge the patch)

To compile:
clone the repo

cd arduino-connector
export GOPATH=$PWD
go get github.com/bcmi-labs/arduino-connector
go build github.com/bcmi-labs/arduino-connector

Jenkins build is on the go

@matteosuppo
Copy link
Contributor

Wait, why don't you just use the vendor directory? https://golang.org/cmd/go/#hdr-Vendor_Directories

@sandeepmistry
Copy link
Contributor

Could we also use a Git submodule for the Paho fork?

@matteosuppo
Copy link
Contributor

But why

@facchinm
Copy link
Member Author

Wait, why don't you just use the vendor directory?

I'm using it 😛

@matteosuppo
Copy link
Contributor

Yeah but you moved everything into a src/github.com folder. Why?

@facchinm
Copy link
Member Author

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
Copy link
Member Author

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

Copy link
Contributor

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.

@matteosuppo
Copy link
Contributor

Can we merge it now?

@facchinm
Copy link
Member Author

http://jenkins.arduino.cc:8080/job/arduino-connector/ is behaving just ok with the current codebase (can be further simplified when the project will be opensourced and could be go-getted). I'd close this one instead than merging... Poll 😄 ?

@facchinm facchinm closed this Jul 25, 2017
@facchinm facchinm deleted the vendoring branch July 25, 2017 15:01
@facchinm facchinm restored the vendoring branch July 25, 2017 15:01
@guerinoni guerinoni deleted the vendoring branch August 4, 2020 08:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants