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

Go issue when trying to do go get #13

Open
@baryluk

Description

@baryluk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions