Skip to content

Commit

Permalink
fix: Emphasize git dependency version locking behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Corbrey committed Jul 29, 2020
1 parent 0d79ba6 commit 13e789e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/doc/src/reference/specifying-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -445,5 +450,3 @@ log-debug = ['foo/log-debug'] # using 'bar/log-debug' would be an error!
}
})();
</script>


0 comments on commit 13e789e

Please sign in to comment.