meshbird icon indicating copy to clipboard operation
meshbird copied to clipboard

install from source does not work

Open mjgarton opened this issue 6 years ago • 5 comments

go get github.com/meshbird/meshbird fails with the following:

package github.com/meshbird/meshbird: no Go files in /home/mgarton/gopath/src/github.com/meshbird/meshbird

mjgarton avatar Sep 18 '18 08:09 mjgarton

Hey @mjgarton!

Please, use Makefile inside. Run $ make build

miolini avatar Sep 18 '18 16:09 miolini

The website still says to run go get github.com/meshbird/meshbird which also fails for me.

Chaz6 avatar Sep 26 '18 11:09 Chaz6

Yes, I should have been clearer. The point of this issue is not that I can't work out how to build the code, it's that the documentation is wrong and I can't build it by following the documentation.

mjgarton avatar Sep 26 '18 12:09 mjgarton

Also, if you would be interested in tweaking the project layout to be more typical of common Go applications, which would also reinstate the ability to use go get then I'd be happy to make a PR for that.

mjgarton avatar Sep 26 '18 12:09 mjgarton

Still the same problem:

Screenshot from 2019-06-13 10-53-32

$ go get github.com/meshbird/meshbird
can't load package: package github.com/meshbird/meshbird: no Go files in /home/xaionaro/go/src/github.com/meshbird/meshbird
$ go get github.com/meshbird/meshbird/...
package meshbird/config: unrecognized import path "meshbird/config" (import path does not begin with hostname)
package meshbird/iface: unrecognized import path "meshbird/iface" (import path does not begin with hostname)
package meshbird/protocol: unrecognized import path "meshbird/protocol" (import path does not begin with hostname)
package meshbird/transport: unrecognized import path "meshbird/transport" (import path does not begin with hostname)
package meshbird/utils: unrecognized import path "meshbird/utils" (import path does not begin with hostname)
package meshbird: unrecognized import path "meshbird" (import path does not begin with hostname)
xaionaro@sonic:~/go/src/github.com/meshbird/meshbird$ make build
go build -v -o bin/meshbird src/meshbird/cmd/main.go
src/meshbird/cmd/main.go:5:2: cannot find package "meshbird" in any of:
        /home/xaionaro/go/src/github.com/meshbird/meshbird/src/meshbird/cmd/vendor/meshbird (vendor tree)
        /home/xaionaro/go/src/github.com/meshbird/meshbird/src/meshbird/vendor/meshbird
        /home/xaionaro/.gimme/versions/go1.12.linux.amd64/src/meshbird (from $GOROOT)
        /home/xaionaro/go/src/meshbird (from $GOPATH)
src/meshbird/cmd/main.go:6:2: cannot find package "meshbird/config" in any of:
        /home/xaionaro/go/src/github.com/meshbird/meshbird/src/meshbird/cmd/vendor/meshbird/config (vendor tree)
        /home/xaionaro/go/src/github.com/meshbird/meshbird/src/meshbird/vendor/meshbird/config
        /home/xaionaro/.gimme/versions/go1.12.linux.amd64/src/meshbird/config (from $GOROOT)
        /home/xaionaro/go/src/meshbird/config (from $GOPATH)
Makefile:6: recipe for target 'build' failed
make: *** [build] Error 1

xaionaro avatar Jun 13 '19 07:06 xaionaro