Add more detail about how to compile the binary

This commit is contained in:
Fabien Potencier 2023-10-25 18:09:24 -07:00
parent 852bb257f0
commit f2d9253550

View file

@ -43,8 +43,12 @@ choice.
If you get version `1.5`, jump to the compilation step below. If not, you first If you get version `1.5`, jump to the compilation step below. If not, you first
need to change the version used in the code. Using the table on the need to change the version used in the code. Using the table on the
[libgit2](https://github.com/libgit2/git2go#which-go-version-to-use) [libgit2](https://github.com/libgit2/git2go#which-go-version-to-use)
repository, figure out which version you need. Then, replace the `v34` in the repository, figure out which version you need. Lets say you need version `v31`:
`go.mod` file and in all files under the `splitter/` directory. Run `go mod tidy`.
```bash
sed -i -e 's/v34/v31/g' go.mod splitter/*.go
go mod tidy
```
Then, compile `splitsh-lite`: Then, compile `splitsh-lite`:
@ -137,9 +141,6 @@ Available options:
* `--progress` displays a progress bar; * `--progress` displays a progress bar;
* `--quiet` suppresses all output on stderr (useful when run from an automated
script);
* `--scratch` flushes the cache (useful when a branch is force pushed or in * `--scratch` flushes the cache (useful when a branch is force pushed or in
case of a cache corruption). case of a cache corruption).