]> git.lizzy.rs Git - rust.git/commitdiff
Document the process of updating external dependencies
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Tue, 15 Aug 2017 16:06:10 +0000 (18:06 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Tue, 15 Aug 2017 16:06:10 +0000 (18:06 +0200)
CONTRIBUTING.md

index 9c54dfd33883d161d9260e1fd260816408510da1..8258b68841bbfe22ba967799c6d911c31c79769e 100644 (file)
@@ -298,6 +298,31 @@ Speaking of tests, Rust has a comprehensive test suite. More information about
 it can be found
 [here](https://github.com/rust-lang/rust-wiki-backup/blob/master/Note-testsuite.md).
 
+### External Dependencies
+
+Currently building Rust will also build the following external projects:
+
+* [clippy](https://github.com/rust-lang-nursery/rust-clippy)
+
+If your changes break one of these projects, you need to fix them by opening
+a pull request against the broken project. When you have opened a pull request,
+you can point the submodule at your pull request by calling
+
+```
+git checkout pulls/$id_of_your_pr/head
+```
+
+within the submodule's directory. Don't forget to also add your changes with
+
+```
+git add path/to/submodule
+```
+
+outside the submodule.
+
+It can also be more convenient during development to set `submodules = false`
+in the `config.toml` to prevent `x.py` from resetting to the original branch.
+
 ## Writing Documentation
 
 Documentation improvements are very welcome. The source of `doc.rust-lang.org`