# Make package: yaml.v2': No such file or directory

**URL:** <https://discuss.elastic.co/t/make-package-yaml-v2-no-such-file-or-directory/66357>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [November 17, 2016, 9:26am UTC](https://discuss.elastic.co/t/make-package-yaml-v2-no-such-file-or-directory/66357 "2016-11-17T09:26:35Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![Aliaksandr\_Zabrodski](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@Aliaksandr\_Zabrodski](https://discuss.elastic.co/u/Aliaksandr_Zabrodski)\
**Post date:** [January 13, 2017, 12:28pm UTC](https://discuss.elastic.co/t/make-package-yaml-v2-no-such-file-or-directory/66357/27 "2017-01-13T12:28:59Z")

</div>

I cleared all docker images and containers, executed the `go get -u github.com/tsg/gotpl` and after the `make package` i got the same error:

```
Successfully built 929696f72b50
echo Creating DEB packages for test1301
Creating DEB packages for test1301
ARCH=386 BEAT=test1301 BUILD_DIR=/home/user/go_workspace/src/github.com/user/test1301/build BEAT_DIR=/home/user/go_workspace/src/github.com/user/test1301 BUILDID= SNAPSHOT=yes /home/user/go_workspace/src/github.com/user/test1301/vendor/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh
/home/user/go_workspace/src/github.com/user/test1301/vendor/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh: 12: /home/user/go_workspace/src/github.com/user/test1301/vendor/github.com/elastic/beats/dev-tools/packer/platforms/debian/build.sh: gotpl: not found
Makefile:14: recipe for target 'test1301/deb' failed
make[1]: *** [test1301/deb] Error 127
make[1]: Leaving directory '/home/user/go_workspace/src/github.com/user/test1301/vendor/github.com/elastic/beats/dev-tools/packer'
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:397: recipe for target 'package' failed
make: *** [package] Error 2

```

Makefile:

```
BEATNAME=test1301
BEAT_DIR=github.com/user/test1301
BEAT_GOPATH=$(firstword $(subst :, ,${GOPATH}))
SYSTEM_TESTS=false
TEST_ENVIRONMENT=false
ES_BEATS?=./vendor/github.com/elastic/beats
GOPACKAGES=$(shell glide novendor)
PREFIX?=.

# Path to the libbeat Makefile
-include $(ES_BEATS)/libbeat/scripts/Makefile

# Initial beat setup
.PHONY: setup
setup: copy-vendor
        make update

# Copy beats into vendor directory
.PHONY: copy-vendor
copy-vendor:
        mkdir -p vendor/github.com/elastic/
        cp -R ${BEAT_GOPATH}/src/github.com/elastic/beats vendor/github.com/elastic/
        rm -rf vendor/github.com/elastic/beats/.git

.PHONY: git-init
git-init:
        git init
        git add README.md CONTRIBUTING.md
        git commit -m "Initial commit"
        git add LICENSE
        git commit -m "Add the LICENSE"
        git add .gitignore
        git commit -m "Add git settings"
        git add .
        git reset -- .travis.yml
        git commit -m "Add test1301"
        git add .travis.yml
        git commit -m "Add Travis CI"

# This is called by the beats packer before building starts
.PHONY: before-build
before-build:

# Collects all dependencies and then calls update
.PHONY: collect
collect:
```

---

_[View the full topic](https://discuss.elastic.co/t/make-package-yaml-v2-no-such-file-or-directory/66357)._
