https://github.com/kahing/goofys/issues/527
@maobaolong @PengleiShi I had the same issue as you guys, new to git and had to work it out. Here is what I did.
Create a directory for github project to download to (logged in as root, so done in root home dir):mkdir -p go/src/github.com/kahing
Pull in goofys project:
cd go/src/github.com/kahing/
git clone https://github.com/kahing/goofys.git
Set my environment variables appropriately:
export GOPATH=/root/go
export GOOFYS_HOME=/root/go/src/github.com/kahing/goofys/
Next I went up one directory to github.com, then pulled in the Azure project (not sure if this was necessary, just documenting what I did):
cd /root/go/src/github.com
go get github.com/Azure/azure-pipeline-go
Once that finished I went back to the goofys directory and populated the submodule repositories using following commands:
cd /root/go/src/github.com/kahing/goofys
git submodule init
git submodule update
Finally, I installed goofys using full path to the src (not sure why I needed to give full path, but it only worked for me with full path):
go install /root/go/src/github.com/kahing/goofys/
The goofys utility is in the bin directory for your go project space:
PATH=$PATH:/root/go/bin; export PATH
goofys --version
Hope this helps.