Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 4:20: expected ';', found "math/big" #167

Closed
hawkingrei opened this issue Sep 4, 2023 · 3 comments · Fixed by #168
Closed

Error: 4:20: expected ';', found "math/big" #167

hawkingrei opened this issue Sep 4, 2023 · 3 comments · Fixed by #168

Comments

@hawkingrei
Copy link

hawkingrei commented Sep 4, 2023

What version of GCI are you using?

gci version 0.11.0

Reproduce Steps

git clone https://github.com/emmansun/gmsm.git
cd gmsm
gci list ./sm2
Error: 4:20: expected ';', found "math/big" (and 5 more errors)

What did you expect to see?

right warning

What did you see instead?

Error: 4:20: expected ';', found "math/big"
@hawkingrei
Copy link
Author

@daixiang0 PTAL

@daixiang0
Copy link
Owner

The root cause is that files use windows line ending format, when I use dos2unix xx.go, all error gone.

@hawkingrei
Copy link
Author

The root cause is that files use windows line ending format, when I use dos2unix xx.go, all error gone.

Have you a way to fix it by linter? because it is a little difficult to fix the third library.

@daixiang0 daixiang0 mentioned this issue Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants