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.
- Clarified that the Usage commands in the README apply to both new and
existing projects
- Move information about the vendor directory backup into the README.
This gives the user the necessary context as soon as they would need
it, rather than needing to stumble upon it (somewhat buried) in the FAQ.
Copy file name to clipboardExpand all lines: docs/FAQ.md
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@ Summarize the question and quote the reply, linking back to the original comment
24
24
*[Why did `dep` use a different revision for package X instead of the revision in the lock file?](#why-did-dep-use-a-different-revision-for-package-x-instead-of-the-revision-in-the-lock-file)
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
-
*[`dep` deleted my files in the vendor directory!](#dep-deleted-my-files-in-the-vendor-directory)
28
27
29
28
## Best Practices
30
29
*[Should I commit my vendor directory?](#should-i-commit-my-vendor-directory)
@@ -249,13 +248,6 @@ When `dep` is invoked with a project root that is a symlink, it will be resolved
249
248
250
249
This is the only symbolic link support that `dep` really intends to provide. In keeping with the general practices of the `go` tool, `dep` tends to either ignore symlinks (when walking) or copy the symlink itself, depending on the filesystem operation being performed.
251
250
252
-
## `dep` deleted my files in the vendor directory!
253
-
If you just ran `dep init`, there should be a copy of your original vendor directory named `_vendor-TIMESTAMP` in your project root. The other commands do not make a backup before modifying the vendor directory.
254
-
255
-
> dep assumes complete control of vendor/, and may indeed blow things away if it feels like it.
256
-
-[@peterbourgon in #206](https://github.com/golang/dep/issues/206#issuecomment-277139419)
257
-
258
-
259
251
## Best Practices
260
252
### Should I commit my vendor directory?
261
253
@@ -276,7 +268,7 @@ It's up to you:
276
268
> I would recommend against ever working in your vendor directory since dep will overwrite any changes. It’s too easy to lose work that way.
277
269
-[@carolynvs in #706](https://github.com/golang/dep/issues/706#issuecomment-305807261)
278
270
279
-
If you have a fork, add a `[[constraint]]` entry for the project in `Gopkg.toml` and set `source` to the fork source. This will ensure that `dep` will fetch the project from the fork instead of the original source.
271
+
If you have a fork, add a `[[constraint]]` entry for the project in `Gopkg.toml` and set `source` to the fork source. This will ensure that `dep` will fetch the project from the fork instead of the original source.
280
272
Otherwise, if you want to test changes locally, you can delete the package from `vendor/` and make changes directly in `GOPATH/src/*package*` so that your changes are picked up by the go tool chain.
281
273
282
274
## How do I roll releases that `dep` will be able to use?
0 commit comments