You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running gci diff on a properly formatted source code file results in a diff. Same applies for the command write.
It seems as the problem is an unintended modification of the underlying src byte array when modifying head & tail which are slices based on the same array.
What version of GCI are you using?
Reproduce Steps
Running
gci diff
on a properly formatted source code file results in a diff. Same applies for the commandwrite
.It seems as the problem is an unintended modification of the underlying src byte array when modifying head & tail which are slices based on the same array.
-> https://github.com/daixiang0/gci/blob/master/pkg/gci/gci.go#L159-L160
What did you expect to see?
Properly formatted files should not print any diff.
What did you see instead?
Diff gets printed due to uncorrect view of source file.
The text was updated successfully, but these errors were encountered: