Our Golang project is using
dep to manage dependencies. This tool expects project source to be located in
$GOPATH. Using the following snippet to resolve dependencies:
dependencies: image: golang:1.9 commands: - go get -u github.com/golang/dep/cmd/dep - dep ensure when: event: [push, tag, pull_request]
Getting an error like the following:
/drone/src/github.com/test/project/commit/75bb1ec8f8f509ecb47adf63f95f8be5078dd72d/ is not within a known GOPATH. Should I add customized
clone stage to my
.drone.yml in order to overcome this problem? If so, do you have any examples of how to do this?
P.S. I also investigated Drone build configuration and can state that it works because this configuration is using
go get only, i.e. copies all dependencies to global sources storage.