Skip to content

Commit e06234b

Browse files
committed
Merge pull request exercism#56 from rcode5/improve-developers-readme
update readme based on real life experience
2 parents a076db2 + b4ab7d4 commit e06234b

1 file changed

Lines changed: 56 additions & 3 deletions

File tree

README.md

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ If that throws an error, try ```brew install go --cross-compile-common --with-ll
1919

2020
Development
2121
===========
22-
1. Fork and clone into your `$GOPATH/src`
23-
1. `go get`
24-
1. `go install github.com/levicook/glitch`
22+
1. `cd $GOPATH`
23+
1. git clone git@github.com:exercism/cli.git src/github.com/exercism/cli
24+
1. cd src/github.com/exercism/cli
25+
1. go get
26+
1. go get github.com/levicook/glitch
27+
1. go install github.com/levicook/glitch
28+
1. Make sure $GOPATH/bin is on your path (you may need something like `export PATH=$PATH:/projects/goprojects/bin`)
2529
1. Open a separate terminal window to your project directory and run the command `glitch`
2630
1. Write a test.
2731
1. Watch test fail.
@@ -48,3 +52,52 @@ To fix it update the `codegangsta/cli` dependency:
4852
$ go get -u github.com/codegangsta/cli
4953
```
5054

55+
New to go? Missing packages for glitch?
56+
-------------------------------------------
57+
58+
### missing assertion library
59+
60+
When you `glitch`, do you get stymied like this?
61+
62+
```shell
63+
# github.com/exercism/cli
64+
api_test.go:7:2: cannot find package "github.com/stretchr/testify/assert" in any of: ...
65+
FAIL github.com/exercism/cli [setup failed]
66+
```
67+
68+
You may need to
69+
70+
71+
```shell
72+
$ go get github.com/stretchr/testify/assert
73+
$ go install github.com/stretchr/testify/assert
74+
$ glitch
75+
```
76+
77+
### `go vet` on MacOS
78+
79+
Depending on your brew installation of `go` you may not yet have the `vet` command available. You may also need `hg` (mercurial) to get rolling.
80+
81+
Here's a sample (trimmed) output from a successful installation of `vet` on MacOSX 10.8.5 with XCode 5.0.2
82+
83+
```shell
84+
% brew install go --cross-compile-common
85+
86+
... installation output ...
87+
88+
% go vet
89+
go tool: no such tool "vet"; to install:
90+
go get code.google.com/p/go.tools/cmd/vet
91+
92+
% go get code.google.com/p/go.tools/cmd/vet
93+
go: missing Mercurial command. See http://golang.org/s/gogetcmd
94+
95+
% brew install hg
96+
% go get code.google.com/p/go.tools/cmd/vet
97+
% go vet
98+
99+
```
100+
101+
Now you should be able to run `glitch`.
102+
103+

0 commit comments

Comments
 (0)