Skip to content

Commit 2f94a87

Browse files
committed
README: refer to 'go get -v' in addition to 'go install'.
A bunch of people have been really annoyed by problems with 'go install'. Fixes #6.
1 parent 1147e09 commit 2f94a87

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,18 @@ which can be pushed, pulled, forked, and merged however you want.
88
## Quick start
99

1010
git-subtrac is a git extension written in the Go language using the lovely
11-
[go-git](https://github.com/src-d/go-git) library. If you have a Go compiler
12-
set up, you can install the tool like this:
11+
[go-git](https://github.com/src-d/go-git) library. If you have Go 1.12 or
12+
higher and a project that already uses go modules (contains a go.mod file),
13+
you can install the tool like this:
1314

1415
go install github.com/apenwarr/git-subtrac
1516

16-
This will drop the compiled program into Go's bin directory, often
17+
If you have an older version of go or don't care about go modules, you can
18+
install it like this instead:
19+
20+
go get -v github.com/apenwarr/git-subtrac
21+
22+
This will drop the compiled program into Go's $GOPATH/bin directory, often
1723
`$HOME/go/bin`. As long as that's in your `$PATH`, you will then be able to
1824
run commands like `git subtrac <whatever>`.
1925

0 commit comments

Comments
 (0)