Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Go issue when trying to do go get #13

Open
baryluk opened this issue Jan 17, 2020 · 2 comments
Open

Go issue when trying to do go get #13

baryluk opened this issue Jan 17, 2020 · 2 comments
Labels

Comments

@baryluk
Copy link

baryluk commented Jan 17, 2020

Maybe it is a bug on my side, as I didn't use go get in some time, but I find it weird:

~/Projekty/io-fault$ which go
/home/baryluk/go1.13.6/bin/go
~/Projekty/io-fault$ go version
go version go1.13.6 linux/amd64
~/Projekty/io-fault$ env | grep GO
GOROOT=/home/baryluk/go1.13.6
GOPATH=/home/baryluk/gocode
$ echo $PATH | sed -e "s/:/\n/g" | grep go
/home/baryluk/gocode/bin
/home/baryluk/go1.13.6/bin
/home/baryluk/go/bin
~/Projekty/io-fault$ ls
~/Projekty/io-fault$

Looks good so far, lets try getting the hookfs as instructed in the README:

~/Projekty/io-fault$ go get -v -v github.com/osrg/hookfs/hookfs
github.com/osrg/hookfs (download)
package github.com/osrg/hookfs/hookfs: cannot find package "github.com/osrg/hookfs/hookfs" in any of:
	/home/baryluk/go1.13.6/src/github.com/osrg/hookfs/hookfs (from $GOROOT)
	/home/baryluk/gocode/src/github.com/osrg/hookfs/hookfs (from $GOPATH)
~/Projekty/io-fault$

But the thing is downloaded:

~/Projekty/io-fault$ ls -lh /home/baryluk/gocode/src/github.com/osrg/hookfs/
total 13K
drwxr-xr-x 3 baryluk baryluk    3 Jan 17 15:47 cmd
-rw-r--r-- 1 baryluk baryluk  121 Jan 17 15:47 go.mod
-rw-r--r-- 1 baryluk baryluk 1.6K Jan 17 15:47 go.sum
-rw-r--r-- 1 baryluk baryluk  12K Jan 17 15:47 LICENSE
drwxr-xr-x 5 baryluk baryluk    5 Jan 17 15:47 pkg
-rw-r--r-- 1 baryluk baryluk 1.8K Jan 17 15:47 README.md
~/Projekty/io-fault$

If I remove the trailing /hookfs it says:

~/Projekty/io-fault$ go get -v -v github.com/osrg/hookfs
can't load package: package github.com/osrg/hookfs: no Go files in /home/baryluk/gocode/src/github.com/osrg/hookfs

huh?

@AkihiroSuda
Copy link
Member

Is this related? #12

cc @qiffang

@baryluk
Copy link
Author

baryluk commented Jan 17, 2020

I don't know.

I did manually do git clone into some other directory, and managed to do go buid of the example, the go build pulled dependencies without issues. So the code itself works.

Only the go get is weird.

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

No branches or pull requests

2 participants