You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: docs/FAQ.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ Summarize the question and quote the reply, linking back to the original comment
25
25
*[Why is `dep` slow?](#why-is-dep-slow)
26
26
*[How does `dep` handle symbolic links?](#how-does-dep-handle-symbolic-links)
27
27
*[Does `dep` support relative imports?](#does-dep-support-relative-imports)
28
+
*[How do I make `dep` resolve dependencies from my `GOPATH`?](#how-do-i-make-dep-resolve-dependencies-from-my-gopath)
28
29
29
30
## Best Practices
30
31
*[Should I commit my vendor directory?](#should-i-commit-my-vendor-directory)
@@ -287,6 +288,13 @@ No.
287
288
288
289
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.
289
290
291
+
## How do I make `dep` resolve dependencies from my `GOPATH`?
292
+
293
+
`dep init` provides an option to scan the `GOPATH` for dependencies by doing
294
+
`dep init -gopath`, which falls back to network mode when the packages are not
295
+
found in `GOPATH`. `dep ensure` doesn't work with projects in `GOPATH`.
0 commit comments