Skip to content

Commit

Permalink
Fix replace statement example in README.md (#859) (#860)
Browse files Browse the repository at this point in the history
(cherry picked from commit 533c82f)

Co-authored-by: Ignacio Taranto <ignacio_taranto@protonmail.com>
  • Loading branch information
lhchavez and itaranto authored Nov 9, 2021
1 parent 3033505 commit a6446ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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/v32 ../../libgit2/git2go
replace github.com/libgit2/git2go/v32 => ../../libgit2/git2go

Parallelism and network operations
----------------------------------
Expand Down

0 comments on commit a6446ac

Please sign in to comment.