From 13e789e01f56be3d0e7f61dfc28c40940b258c92 Mon Sep 17 00:00:00 2001 From: Isaac Corbrey Date: Wed, 29 Jul 2020 04:49:44 -0900 Subject: [PATCH] fix: Emphasize git dependency version locking behavior. --- src/doc/src/reference/specifying-dependencies.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/doc/src/reference/specifying-dependencies.md b/src/doc/src/reference/specifying-dependencies.md index 72ee9851e49..28c83b93f45 100644 --- a/src/doc/src/reference/specifying-dependencies.md +++ b/src/doc/src/reference/specifying-dependencies.md @@ -147,6 +147,11 @@ the latest commit on a branch named `next`: rand = { git = "https://github.com/rust-lang-nursery/rand", branch = "next" } ``` +Once a `git` dependency has been added, Cargo will lock that dependency to the +latest commit at the time. New commits will not be pulled down automatically +once the lock is in place. However, they can be pulled down manually with +`cargo update`. + See [Git Authentication] for help with git authentication for private repos. > **Note**: [crates.io] does not allow packages to be published with `git` @@ -445,5 +450,3 @@ log-debug = ['foo/log-debug'] # using 'bar/log-debug' would be an error! } })(); - -