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
-31
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,6 @@ The FAQ predated the introduction of the rest of the documentation. If something
34
34
## Best Practices
35
35
36
36
*[Should I commit my vendor directory?](#should-i-commit-my-vendor-directory)
37
-
*[How do I test changes to a dependency?](#how-do-i-test-changes-to-a-dependency)
38
37
*[How do I roll releases that `dep` will be able to use?](#how-do-i-roll-releases-that-dep-will-be-able-to-use)
39
38
*[What semver version should I use?](#what-semver-version-should-i-use)
40
39
*[Is it OK to make backwards-incompatible changes now?](#is-it-ok-to-make-backwards-incompatible-changes-now)
@@ -384,36 +383,6 @@ It's up to you:
384
383
* PR diffs will include changes for files under `vendor/` when Gopkg.lock is modified,
385
384
however files in `vendor/` are [hidden by default](https://github.com/github/linguist/blob/v5.2.0/lib/linguist/generated.rb#L328) on GitHub.
386
385
387
-
## How do I test changes to a dependency?
388
-
389
-
Making changes in your `vendor/` directory directly is not recommended, as dep
390
-
will overwrite any changes. Instead:
391
-
392
-
1. Delete the dependency from the `vendor/` directory.
393
-
394
-
```sh
395
-
rm -rf vendor/<dependency>
396
-
```
397
-
398
-
1. Add that dependency to your `GOPATH`, if it isn't already.
399
-
400
-
```sh
401
-
$ go get <dependency>
402
-
```
403
-
404
-
1. Modify the dependency in`$GOPATH/src/<dependency>`.
405
-
1. Test, build, etc.
406
-
407
-
Don't run `dep ensure` until you're done. `dep ensure` will reinstall the
408
-
dependency into `vendor/` based on your manifest, as if you were installing from
409
-
scratch.
410
-
411
-
This solution works for short-term use, but for something long-term, take a look
412
-
at [virtualgo](https://github.com/GetStream/vg).
413
-
414
-
To test out code that has been pushed as a new version, or to a branch or fork,
415
-
see [changing dependencies](#how-do-i-change-change-the-version-of-a-dependecy).
416
-
417
386
## How do I roll releases that `dep` will be able to use?
418
387
419
388
In short: make sure you've committed your `Gopkg.toml` and `Gopkg.lock`, then
0 commit comments