Skip to content

errors when using import alias, zap package since version 0.3.0 #60

Closed
@brandon-lango

Description

@brandon-lango

We are using gci as part of golangci-lint. Ever since version 0.3.0, we have been getting errors where previous versions have worked.

This error seems like it's expecting everything to import from github.com, however we use zap which comes from go.uber.org.

Expected 'i', Found 'o'
"go.uber.org/zap"

We also get this, which seems to be related to using aliases

Expected '"', Found 'l'
log "github.com/sirupsen/logrus"

This version also seems to not like blank lines between our third party libraries and internal imports.
Expected '\t', Found '\n'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions