# Possible bug with beats 5.3 and glide?

**URL:** <https://discuss.elastic.co/t/possible-bug-with-beats-5-3-and-glide/77896>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [March 8, 2017, 9:36pm UTC](https://discuss.elastic.co/t/possible-bug-with-beats-5-3-and-glide/77896 "2017-03-08T21:36:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzrelyea](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@rzrelyea](https://discuss.elastic.co/u/rzrelyea)\
**Post date:** [March 8, 2017, 9:36pm UTC](https://discuss.elastic.co/t/possible-bug-with-beats-5-3-and-glide/77896/1 "2017-03-08T21:36:07Z")

</div>

I am developing a custom beat and was testing the build on a clean directory when I hit a problem with glide. Note that I only have this problem with glide when using version 5.3 of beats. If I use version 5.2 glide does not have any problems.

In my beat's glide.yml file I had included beats like this:

```
- package: github.com/elastic/beats
  version: ^5.1.4
  subpackages:
  - libbeat/beat
  - libbeat/common
  - libbeat/logp
  - libbeat/publisher

```

When I did "glide up", glide selected version 5.3 of beats. Then it tried to import [github.com/elastic/beats/libbeat/plugin](http://github.com/elastic/beats/libbeat/plugin). At that point, it printed the following error:

```
[DEBUG]	Package github.com/elastic/beats/libbeat/beat imports github.com/elastic/beats/libbeat/plugin
[DEBUG]	Missing github.com/elastic/beats/libbeat/plugin. Trying to resolve.
[DEBUG]	Trying to open github.com/elastic/beats/libbeat/plugin (/Users/rebeccarelyea/.glide/cache/src/https-github.com-elastic-beats/libbeat/plugin)
[DEBUG]	Package github.com/elastic/beats/libbeat/plugin imports github.com/elastic/beats/libbeat/logp
[DEBUG]	Package github.com/elastic/beats/libbeat/plugin imports plugin
[DEBUG]	Missing plugin. Trying to resolve.
[INFO]	--> Fetching plugin.
[WARN]	Unable to checkout plugin
[ERROR]	Error looking for plugin: Cannot detect VCS

```

When I change my glide.yml file to this, glide is able to update successfully:

```
- package: github.com/elastic/beats
  version: 5.2
  subpackages:
  - libbeat/beat
  - libbeat/common
  - libbeat/logp
  - libbeat/publisher

```

Is this possibly because the [load.go](https://github.com/elastic/beats/blob/5.3/libbeat/plugin/load.go) file in the plugin package also imports the plugin package?

---

<div class="post-metadata">

**Author:** ![giuseppe](https://avatars.discourse-cdn.com/v4/letter/g/48db29/32.png) [@giuseppe](https://discuss.elastic.co/u/giuseppe)\
**Post date:** [March 8, 2017, 10:52pm UTC](https://discuss.elastic.co/t/possible-bug-with-beats-5-3-and-glide/77896/2 "2017-03-08T22:52:48Z")

</div>

Hi Rebecca,

You're right: the `plugin` package was released in go1.8, are you using that version?

[https://golang.org/doc/go1.8#plugin](https://golang.org/doc/go1.8#plugin)

---

<div class="post-metadata">

**Author:** ![rzrelyea](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@rzrelyea](https://discuss.elastic.co/u/rzrelyea)\
**Post date:** [March 9, 2017, 1:34pm UTC](https://discuss.elastic.co/t/possible-bug-with-beats-5-3-and-glide/77896/3 "2017-03-09T13:34:17Z")

</div>

Oh - I see! Yes, I'm using Go 1.7.4. That explains it. Thank you!

Should the [Dockerfile](https://github.com/elastic/beats/blob/5.3/Dockerfile) in 5.3 depend on 1.8 instead of 1.7.4, then?

---

<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:** [March 11, 2017, 4:37pm UTC](https://discuss.elastic.co/t/possible-bug-with-beats-5-3-and-glide/77896/4 "2017-03-11T16:37:57Z")

</div>

5.3 is intentionally on 1.7 as we didn't wanted to switch to 1.8 too early. Still we added plugin support for experts that one the one hand know how to compile beats on their own in 1.8. We also didn't change master to 1.8 yet. If you want to test plugins, best ignore our Dockerfiles for the moment 😉

---

<div class="post-metadata">

**Author:** ![giuseppe](https://avatars.discourse-cdn.com/v4/letter/g/48db29/32.png) [@giuseppe](https://discuss.elastic.co/u/giuseppe)\
**Post date:** [March 11, 2017, 5:55pm UTC](https://discuss.elastic.co/t/possible-bug-with-beats-5-3-and-glide/77896/5 "2017-03-11T17:55:04Z")

</div>

Good catch Rebecca! That Dockerfile was stale and got removed at [3a86e7f](https://github.com/elastic/beats/commit/3a86e7f7971f3f0a84c4262c2da42e2d3c998380)

---

<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:** [April 8, 2017, 5:55pm UTC](https://discuss.elastic.co/t/possible-bug-with-beats-5-3-and-glide/77896/6 "2017-04-08T17:55:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
