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

Commit 2721097

Browse files
authored
Merge pull request #1591 from darkowlzz/faq-fix-link-readme-docasaurus
FAQ: fix anchors with "'" in github and docusaurus
2 parents c48b84b + 003656d commit 2721097

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/FAQ.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Here are some suggestions for when you could use `dep` or `go get`:
7979
>
8080
> [@sdboyer in #281](https://github.com/golang/dep/issues/281#issuecomment-284118314)
8181
82-
## How do I constrain a transitive dependency's version?
82+
## <a id="how-do-i-constrain-a-transitive-dependency-s-version"></a>How do I constrain a transitive dependency's version?
8383
First, if you're wondering about this because you're trying to keep the version
8484
of the transitive dependency from changing, then you're working against `dep`'s
8585
design. The lock file, `Gopkg.lock`, will keep the selected version of the
@@ -405,7 +405,7 @@ Note that providing an incremental migration path across breaking changes (i.e.,
405405
shims) is tricky, and something we [don't have a good answer for
406406
yet](https://groups.google.com/forum/#!topic/go-package-management/fp2uBMf6kq4).
407407

408-
## My dependers don't use `dep` yet. What should I do?
408+
## <a id="my-dependers-don-t-use-dep-yet-what-should-i-do"></a>My dependers don't use `dep` yet. What should I do?
409409

410410
For the most part, you needn't do anything differently.
411411

@@ -416,7 +416,7 @@ problems](https://groups.google.com/d/msg/golang-nuts/AnMr9NL6dtc/UnyUUKcMCAAJ).
416416
If your dependers are using `dep`, this is not a concern, as `dep` takes care of
417417
stripping out nested `vendor` directories.
418418

419-
## How do I configure a dependency that doesn't tag its releases?
419+
## <a id="how-do-i-configure-a-dependency-that-doesn-t-tag-its-releases"></a>How do I configure a dependency that doesn't tag its releases?
420420

421421
Add a constraint to `Gopkg.toml` that specifies `branch: "master"` (or whichever branch you need) in the `[[constraint]]` for that dependency. `dep ensure` will determine the current revision of your dependency's master branch, and place it in `Gopkg.lock` for you. See also: [What is the difference between Gopkg.toml and Gopkg.lock?](#what-is-the-difference-between-gopkgtoml-the-manifest-and-gopkglock-the-lock)
422422

0 commit comments

Comments
 (0)