Fix replace statement example in README.md (#859) (#861)

(cherry picked from commit 533c82f270)

Co-authored-by: Ignacio Taranto <ignacio_taranto@protonmail.com>
This commit is contained in:
lhchavez 2021-11-09 06:36:05 -08:00 committed by GitHub
parent 206c5a356c
commit a3a7c72444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ In order to let Go pass the correct flags to `pkg-config`, `-tags static` needs
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
replace github.com/libgit2/git2go/v31 ../../libgit2/git2go
replace github.com/libgit2/git2go/v31 => ../../libgit2/git2go
Parallelism and network operations
----------------------------------