Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #842 from darkowlzz/faq-resolve-dep-gopath
Browse files Browse the repository at this point in the history
FAQ: resolving dependencies from GOPATH
  • Loading branch information
sdboyer authored Aug 11, 2017
2 parents b353631 + 22bd427 commit c20daf3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Summarize the question and quote the reply, linking back to the original comment
* [Why is `dep` slow?](#why-is-dep-slow)
* [How does `dep` handle symbolic links?](#how-does-dep-handle-symbolic-links)
* [Does `dep` support relative imports?](#does-dep-support-relative-imports)
* [How do I make `dep` resolve dependencies from my `GOPATH`?](#how-do-i-make-dep-resolve-dependencies-from-my-gopath)

## Best Practices
* [Should I commit my vendor directory?](#should-i-commit-my-vendor-directory)
Expand Down Expand Up @@ -287,6 +288,13 @@ No.
For a refresher on Go's recommended workspace organization, see the ["How To Write Go Code"](https://golang.org/doc/code.html) article in the Go docs. Organizing your code this way gives you a unique import path for every package.

## How do I make `dep` resolve dependencies from my `GOPATH`?

`dep init` provides an option to scan the `GOPATH` for dependencies by doing
`dep init -gopath`, which falls back to network mode when the packages are not
found in `GOPATH`. `dep ensure` doesn't work with projects in `GOPATH`.


## Best Practices
### Should I commit my vendor directory?

Expand Down

0 comments on commit c20daf3

Please sign in to comment.