-
Notifications
You must be signed in to change notification settings - Fork 65
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: an error occurred while trying to parse imports: Found non-letter character '.' in Alias: . #44
Comments
matheusalcantarazup
pushed a commit
to matheusalcantarazup/gci
that referenced
this issue
Feb 1, 2022
matheusalcantarazup
added a commit
to matheusalcantarazup/gci
that referenced
this issue
Feb 1, 2022
matheusalcantarazup
added a commit
to matheusalcantarazup/gci
that referenced
this issue
Feb 1, 2022
Fixes daixiang0#44 Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
matheusalcantarazup
added a commit
to ZupIT/horusec
that referenced
this issue
Feb 2, 2022
The latest release of gci formatter come with a bug[1] that generate an error to format files that use dot imports. This commit fix the previous version to avoid errors on make format until the bug is fixed. [1] daixiang0/gci#44 Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
matheusalcantarazup
added a commit
to ZupIT/horusec
that referenced
this issue
Feb 2, 2022
The latest release of gci formatter come with a bug[1] that generate an error to format files that use dot imports. This commit fix the previous version to avoid errors on make format until the bug is fixed. [1] daixiang0/gci#44 Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
matheusalcantarazup
added a commit
to matheusalcantarazup/gci
that referenced
this issue
Feb 7, 2022
Fixes daixiang0#44 Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
daixiang0
pushed a commit
that referenced
this issue
Feb 8, 2022
Fixes #44 Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When gci try to analyze a file that use dot imports, an error is occurred.
Consider the following file:
When running using the following command:
gci --write --local . testdata main.go
This error is returned:
I'm using the latest version:
Using the previous version 0.2.9 the analysis finish wit successfull:
$ go install github.com/daixiang0/gci@v0.2.9 $ gci -w -local . testdata main.go
The text was updated successfully, but these errors were encountered: