Code differs from goimports' style

I try to submit a PR on the beats repo, but everytime I get the same error during travis-ci build.

go vet github.com/elastic/beats/packetbeat github.com/elastic/beats/packetbeat/beater github.com/elastic/beats/packetbeat/config github.com/elastic/beats/packetbeat/decoder github.com/elastic/beats/packetbeat/flows github.com/elastic/beats/packetbeat/include github.com/elastic/beats/packetbeat/procs github.com/elastic/beats/packetbeat/protocols github.com/elastic/beats/packetbeat/protos github.com/elastic/beats/packetbeat/protos/amqp github.com/elastic/beats/packetbeat/protos/applayer github.com/elastic/beats/packetbeat/protos/cassandra github.com/elastic/beats/packetbeat/protos/cassandra/internal/gocql github.com/elastic/beats/packetbeat/protos/dns github.com/elastic/beats/packetbeat/protos/graphite github.com/elastic/beats/packetbeat/protos/http github.com/elastic/beats/packetbeat/protos/icmp github.com/elastic/beats/packetbeat/protos/memcache github.com/elastic/beats/packetbeat/protos/mongodb github.com/elastic/beats/packetbeat/protos/mysql github.com/elastic/beats/packetbeat/protos/nfs github.com/elastic/beats/packetbeat/protos/pgsql github.com/elastic/beats/packetbeat/protos/redis github.com/elastic/beats/packetbeat/protos/tcp github.com/elastic/beats/packetbeat/protos/thrift github.com/elastic/beats/packetbeat/protos/udp github.com/elastic/beats/packetbeat/publish github.com/elastic/beats/packetbeat/sniffer
Code differs from goimports' style
make[1]: *** [check] Error 1
make[1]: Leaving directory `/home/travis/gopath/src/github.com/elastic/beats/packetbeat'
make: *** [check] Error 1

Any help would be appreciated. TIA

You can run make fmt to cleanup the styles.

This topic was automatically closed after 21 days. New replies are no longer allowed.