# Mender-artifact is failing to build

**URL:** <https://hub.mender.io/t/mender-artifact-is-failing-to-build/464>\
**Category:** General Discussions\
**Created:** [April 9, 2019, 9:45am UTC](https://hub.mender.io/t/mender-artifact-is-failing-to-build/464 "2019-04-09T09:45:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pei.cei](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@pei.cei](https://hub.mender.io/u/pei.cei)\
**Post date:** [April 9, 2019, 9:45am UTC](https://hub.mender.io/t/mender-artifact-is-failing-to-build/464/1 "2019-04-09T09:45:05Z")

</div>

Hello,

I downloaded the mender-artifact code with below command.

git clone [https://github.com/mendersoftware/mender-artifact.git](https://github.com/mendersoftware/mender-artifact.git)

after setting up env and go build got below error:

go build [github.com/mendersoftware/mender-artifact:](http://github.com/mendersoftware/mender-artifact:) no non-test Go files in /src/github.com/mendersoftware/mender-artifact

ManyThanks,  
Pei

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [April 9, 2019, 10:43am UTC](https://hub.mender.io/t/mender-artifact-is-failing-to-build/464/2 "2019-04-09T10:43:35Z")

</div>

Use `make` if you want to build mender-artifact. The same goes for the mender client.

Go build is not enough because we add additional steps to the build process.

---

<div class="post-metadata">

**Author:** ![pei.cei](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@pei.cei](https://hub.mender.io/u/pei.cei)\
**Post date:** [April 9, 2019, 11:04am UTC](https://hub.mender.io/t/mender-artifact-is-failing-to-build/464/3 "2019-04-09T11:04:58Z")

</div>

Thank you @kacf. I had to install lzma which was missing and make build did build the binary.

- 

Pei
