# Code differs from goimports' style

**URL:** <https://discuss.elastic.co/t/code-differs-from-goimports-style/84671>\
**Category:** Beats\
**Created:** [May 5, 2017, 8:10am UTC](https://discuss.elastic.co/t/code-differs-from-goimports-style/84671 "2017-05-05T08:10:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhindrasajjal](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@sudhindrasajjal](https://discuss.elastic.co/u/sudhindrasajjal)\
**Post date:** [May 5, 2017, 8:10am UTC](https://discuss.elastic.co/t/code-differs-from-goimports-style/84671/1 "2017-05-05T08:10:32Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [May 5, 2017, 8:25am UTC](https://discuss.elastic.co/t/code-differs-from-goimports-style/84671/2 "2017-05-05T08:25:23Z")

</div>

You can run `make fmt` to cleanup the styles.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 26, 2017, 8:13am UTC](https://discuss.elastic.co/t/code-differs-from-goimports-style/84671/3 "2017-05-26T08:13:26Z")

</div>

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