Skip to content

Commit

Permalink
[parser] README: update replace parser version command (pingcap#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
winkyao authored and xhebox committed Oct 8, 2021
1 parent fadc058 commit dce7089
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ Suppose the forked repository is `https://github.com/your-repo/parser`.
replace github.com/pingcap/parser => github.com/your-repo/parser v0.0.0-20181102150703-4acd198f5092
```
This change tells TiDB to use the modified parser from your repository.
This change tells TiDB to use the modified parser from your repository. You can just use below command to replace the dependent parser version:
```
GO111MODULE=on go mod edit -replace github.com/pingcap/parser=github.com/your-repo/parser@your-branch
```
2. You can get correct version information by running this command in your TiDB directory:
Expand Down

0 comments on commit dce7089

Please sign in to comment.