Skip to content

Commit 790cd6f

Browse files
lhchavezitaranto
andauthored
Fix replace statement example in README.md (#859) (#864)
(cherry picked from commit 533c82f) Co-authored-by: Ignacio Taranto <[email protected]>
1 parent 2c7a081 commit 790cd6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ In order to let Go pass the correct flags to `pkg-config`, `-tags static` needs
7575

7676
One thing to take into account is that since Go expects the `pkg-config` file to be within the same directory where `make install-static` was called, so the `go.mod` file may need to have a [`replace` directive](https://github.com/golang/go/wiki/Modules#when-should-i-use-the-replace-directive) so that the correct setup is achieved. So if `git2go` is checked out at `$GOPATH/src/github.com/libgit2/git2go` and your project at `$GOPATH/src/github.com/my/project`, the `go.mod` file of `github.com/my/project` might need to have a line like
7777

78-
replace github.com/libgit2/git2go/v27 ../../libgit2/git2go
78+
replace github.com/libgit2/git2go/v27 => ../../libgit2/git2go
7979

8080
Parallelism and network operations
8181
----------------------------------

0 commit comments

Comments
 (0)