pingcap / parser

A MySQL Compatible SQL Parser
Apache License 2.0
1.41k stars 489 forks source link

cannot run the demo in README.md because of broken dependencies #1302

Open hitzhangjie opened 3 years ago

hitzhangjie commented 3 years ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.

Run the demo in READEME.md

  1. What did you expect to see?

Parse sql statement successfully and output the statement.

  1. What did you see instead?

Build error because the module dependencies is broken.

eqinox76 commented 2 years ago

Seems to be a duplicate of #812. It seems that one has to use a specific commit instead of the tag. Example for getting v4.0.2:

go get github.com/pingcap/parser@3a18f1e5dceb2987570e6a1286d93c70f9af061f