Closed BurntSushi closed 11 years ago
You are right, and it was the expected behavior (to only go get the source). All those subpackage are in this project. Have you tried cloning the repo?
I don't believe gopi
is in this repo---it's a separate repo.
Is there any reason why you don't want it to be go gettable?
I think I know why it was failing. Let me do some quick test and commit the changes.
gopi is located at github.com/pothibo/gopi. Since I am developping on the same $GOPATH I forgot to make the imports relative to github.com. Shouldn't take long before the fix
Well it might take a bit more, gotta install Go on my mac. Had a power outage 2 days ago and the Pi wasn't protected so it seems it fried. :(
Can you please try go get again and tell me if it works I can't fully test irrigation on an imac due to gopi being specific to the pi. I ordered a new Pi but I won't be able to test until I get a new one.
Works. :-)
[andrew@Liger ~] go get github.com/pothibo/irrigation
[andrew@Liger ~]
I think you should also be able to include assets in your git
repo too so that your executable can automatically find them at run time. (See build.SrcDirs.)
That's a major bummer to hear your Pi got fried. :-( Mine is stuffed in a closet somewhere. I've been testing this on Linux/x64.
Great news!
I've heard about build.SrcDirs but didn't have time yet to play with it. You might want to be careful with using irrigation on your machine. gopi( wiringPi) uses mmap to assign some address. Behavior on x64 might be undefined.
Aye. I'm just passing through. If and when I get a house with an irrigation system, I'll be sure to come back. :-) Good luck with the project!
I should be able to simply run
to download and build your package. But I get this in a clean
$GOPATH
:Even if I follow your instructions I get build errors looking for
gopi
:Is there any reason why are you aren't qualifying your import paths? e.g., instead of
irrigation/db
, you'd usegithub.com/pothibo/irrigation/db
. If you fully qualified all your import paths. You should do this for other packages too, likegithub.com/pothibo/gopi
instead of justgopi
.If you do that, then people will be able to just run
go get github.com/pothibo/irrigation
and things will work. :-)