# Manage Dependencies With GODEP

DevFeed: [Manage Dependencies With GODEP](<https://devfeed.tech/articles/manage-dependencies-with-godep-22080.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2013/10/manage-dependencies-with-godep.html>)

Published: 2013-10-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Dependency management](<https://devfeed.tech/topics/dependency-management.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [reproducible builds](<https://devfeed.tech/topics/reproducible-builds.md>), [Code](<https://devfeed.tech/topics/code.md>), [Git](<https://devfeed.tech/topics/git.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [build](<https://devfeed.tech/tags/build.md>), [code](<https://devfeed.tech/tags/code.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [git](<https://devfeed.tech/tags/git.md>), [git-commit](<https://devfeed.tech/tags/git-commit.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [import](<https://devfeed.tech/tags/import.md>), [install](<https://devfeed.tech/tags/install.md>), [management](<https://devfeed.tech/tags/management.md>), [packages](<https://devfeed.tech/tags/packages.md>), [programming](<https://devfeed.tech/tags/programming.md>), [reproducible-builds](<https://devfeed.tech/tags/reproducible-builds.md>), [version-control](<https://devfeed.tech/tags/version-control.md>)

## AI overview

This tutorial explains how to use godep to manage third-party Go dependencies and create reproducible builds. It covers installing godep, creating a project, generating a Godeps file with dependency version information, and vendoring packages.

## Source excerpt

Introduction If you are using 3rd party packages, (packages that you don't own or control), you will want a way to create a reproducible build every time you build your projects. If you use 3rd party packages directly and the package authors change things, your projects could break. Even if things don't break, code changes could create inconsistent behavior and bugs. Keith Rarick's tool godep is a great step in the right direction for managing 3rd party dependencies and creating reproducible builds. The godep tool gives you two options for managing dependencies. The first option creates a dependency file with version control information and then with some godep magic, the code is built against those versions. You can also Vendor your 3rd party packages inside your projects as well. You never need to change a single source code file and everything is accomplished in conjunction with the go tooling. Downloading Godep Download godep using go get and make sure your $GOPATH/bin directory is in your PATH. go get github.com/kr/godep export PATH=$PATH:$GOPATH/bin Create A Project Build your project using the 3rd party packages as you normally would. Since godep does not require you to change any import paths in the code, 'go get' the code you need and import those packages directly. To keep the post simple, I am going to use an existing program called News Search that uses one 3rd party dependency. export GOPATH=$HOME/example go get github.com/goinggo/newssearch View linked image: Screen Shot