Cloning the Repo - Snap-for-Windows/snap GitHub Wiki

Overview

Because of the way Go handles import paths, you can't simply clone this repo expecting to build the code without issue. Instead, the sanctioned method is to clone down the official intelsdi-x version of Snap and add this fork as a remote. Follow the steps below to accomplish this.

go get -d github.com/intelsdi-x/snap
cd $GOPATH/src/github.com/intelsdi-x/snap
git remote add fork https://github.com/Snap-for-Windows/snap.git
git fetch fork
git checkout -b fork fork/master

Troubleshooting

If you receive a fatal: I don't handle protocol 'https' upon running git fetch fork in Windows, run git remote remove fork and then manually type in git remote add fork https://github.com/Snap-for-Windows/snap.git.