Created
June 23, 2017 13:10
-
-
Save grahamc/0c0f10809733f28c60b1e3fcff9dcb1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nix-shell | |
Something went wrong setting up the envirnoment! | |
Diagnostics... | |
* Remember, if you need help, contact Graham! * | |
Step 0: Ensuring we are cloned in a GOPATH-like path | |
Are we in src/github/foo/ProjectName... Hm... nope, this is a problem. | |
Problem: foo/ProjectName is cloned to: | |
/Users/graham/projects/ProjectName | |
which is not compatible with Golang's `go get` functionality. | |
To remedy this, follow the following directions. If you don't like | |
the recommended directories, feel free to change them, the important | |
part here is that it look like src/github/foo/ProjectName. | |
The recommendations are just guesses, hoping they make sense. | |
1. Create the GOPATH compatible directory structure: | |
$ mkdir -p /Users/graham/projects/gopath/src/github/foo | |
2. Move this repository in to the directory structure: | |
$ cd .. | |
$ mv /Users/graham/projects/ProjectName /Users/graham/projects/gopath/src/github/foo/ProjectName | |
3. Move to the new location and run nix-shell again, for | |
further instructions: | |
$ cd /Users/graham/projects/gopath/src/github/foo/ProjectName | |
$ nix-shell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment