# How to build: https://github.com/drone/drone

**URL:** <https://drone.discourse.group/t/how-to-build-https-github-com-drone-drone/9354>\
**Category:** Drone Support\
**Created:** [January 28, 2018, 9:56am UTC](https://drone.discourse.group/t/how-to-build-https-github-com-drone-drone/9354 "2018-01-28T09:56:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![venth](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@venth](https://drone.discourse.group/u/venth)\
**Post date:** [January 28, 2018, 9:56am UTC](https://drone.discourse.group/t/how-to-build-https-github-com-drone-drone/9354/1 "2018-01-28T09:56:51Z")

</div>

Hi guys,

I’ve applied steps from BUILDING.md file and executed command: `go build cmd/drone-agent/*`

The result was:

```auto
./agent.go:90:29: cannot use conn (type *"github.com/drone/drone/vendor/google.golang.org/grpc".ClientConn) as type *"github.com/drone/drone/vendor/github.com/cncd/pipeline/vendor/google.golang.org/grpc".ClientConn in argument to rpc.NewGrpcClient

```

Then applied simple glide description to improve dependencies management. The glide file:

```auto
package: github.com/drone/drone
import:
- package: github.com/Sirupsen/logrus
  repo: git@github.com:sirupsen/logrus.git
- package: github.com/drone/drone-ui/dist
- package: golang.org/x/net/context
- package: golang.org/x/net/context/ctxhttp
- package: github.com/golang/protobuf/proto
- package: github.com/golang/protobuf/protoc-gen-go

```

and executed the same command and unfortunately the result was exactly the same as afore mentioned.

Could you, please, help me setup local environment or point out documentation?

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [January 30, 2018, 8:38am UTC](https://drone.discourse.group/t/how-to-build-https-github-com-drone-drone/9354/2 "2018-01-30T08:38:06Z")

</div>

The `BULDING` file works for me, but if you are having difficultly you can always reference the [`.drone.yml`](https://github.com/drone/drone/blob/master/.drone.yml#L5:L15) file, which should be considered the canonical build instructions for Drone. The commands in the yaml file are successfully executed for every commit and pull request that we receive.

See [https://github.com/drone/drone/blob/master/.drone.yml#L5:L15](https://github.com/drone/drone/blob/master/.drone.yml#L5:L15)

---

<div class="post-metadata">

**Author:** ![venth](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@venth](https://drone.discourse.group/u/venth)\
**Post date:** [January 30, 2018, 9:14am UTC](https://drone.discourse.group/t/how-to-build-https-github-com-drone-drone/9354/3 "2018-01-30T09:14:47Z")

</div>

Thank for the answer. I’ve managed to build the server and agent. I had wrong version of docker/docker (it was 1.2 - very old) in the meantime it was migrated to moby/moby (1.18…)

Did you consider to use glide or golang/dep tools for vendoring purposes?  
Locally I setup in my fork glide, thanks to it I was able to quickly deal with the issue I had.
