Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go get failing due to missing platform libs in dev branch #319

Closed
conoro opened this issue Oct 10, 2016 · 5 comments
Closed

go get failing due to missing platform libs in dev branch #319

conoro opened this issue Oct 10, 2016 · 5 comments

Comments

@conoro
Copy link

conoro commented Oct 10, 2016

I'm trying to install Gobot on a C.H.I.P and I'm failing on the first hurdle.

go get -d -u github.com/hybridgroup/gobot/...

gives

cannot find package "github.com/hybridgroup/gobot/platforms/i2c"

i2c and gpio seem to be missing on the default dev branch in GitHub but they are on master. Is there some trick to getting master other than checking everything out manually? Thanks.

@deadprogram
Copy link
Member

Hi @conoro

both the i2c and gpio packages are now under /drivers in the dev branch, but this seems to be an unforeseen consequence of Github, having set the default branch to dev, and how Golang gets packages.

What I thought was happening was Golang would simply always get the master branch, sinec that used to be the default behavior. My knowledge on that subject was way out of date, it would seem. What appears to actually be happening is that Github serves up the default branch golang/go#9032

Ouch, my bad. So much for our careful release planning.

I think the best thing to do for now, is switch the default branch back to master. Hopefully that will give a chance to complete the refactoring work taking place right now, for which the docs are not yet complete.

@conoro
Copy link
Author

conoro commented Oct 10, 2016

@deadprogram Thanks! I also found a quick workaround which was just to use govendor like so:

govendor init
govendor fetch github.com/hybridgroup/gobot/...@master

I was then able to build and run the sample app

@deadprogram
Copy link
Member

Did you obtain the code for that sample from the web site? I ask because the code in the repo itself has been modified for compatibility with the latest changes.

@conoro
Copy link
Author

conoro commented Oct 10, 2016

Yeah I just used the code from the bottom of this page: https://gobot.io/documentation/platforms/chip/

@deadprogram
Copy link
Member

I cut a release yesterday (0.13.0) with the code up the point I merged the new refactored branch on Monday, and then switched back the master branch to be the default branch. This way, anyone who was tracking the default up to that point has a master branch to match.

I will close this issue now, thanks for pointing it out @conoro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants