Bug 1412037 - Include testing/webdriver as vendored dependency. r?jgraham draft
authorAndreas Tolfsen <ato@sny.no>
Mon, 30 Oct 2017 15:02:19 +0000
changeset 688744 25cb068332b4557c161af0a231f74e2ac9a0c7dc
parent 688663 1c618b1a13662de7cec429f606367db3827b6dc7
child 688745 8434385412504dfc6f253116f22f808ead66c246
push id86836
push userbmo:ato@sny.no
push dateMon, 30 Oct 2017 15:47:33 +0000
reviewersjgraham
bugs1412037
milestone58.0a1
Bug 1412037 - Include testing/webdriver as vendored dependency. r?jgraham This is required for "./mach vendor rust" to pick up on testing/webdriver's dependency tree. This change should have been made when the webdriver crate was vendored in the tree in the first place. MozReview-Commit-ID: 5sqRojm0bGD
python/mozbuild/mozbuild/vendor_rust.py
--- a/python/mozbuild/mozbuild/vendor_rust.py
+++ b/python/mozbuild/mozbuild/vendor_rust.py
@@ -266,16 +266,17 @@ license file's hash.
         self.log(logging.INFO, 'rm_vendor_dir', {}, 'rm -rf %s' % vendor_dir)
         mozfile.remove(vendor_dir)
         # Once we require a new enough cargo to switch to workspaces, we can
         # just do this once on the workspace root crate.
         crates_and_roots = (
             ('gkrust', 'toolkit/library/rust'),
             ('gkrust-gtest', 'toolkit/library/gtest/rust'),
             ('js', 'js/rust'),
+            ('webdriver', 'testing/webdriver'),
             ('geckodriver', 'testing/geckodriver'),
         )
 
         lockfiles = []
         for (lib, crate_root) in crates_and_roots:
             path = mozpath.join(self.topsrcdir, crate_root)
             # We use check_call instead of mozprocess to ensure errors are displayed.
             # We do an |update -p| here to regenerate the Cargo.lock file with minimal changes. See bug 1324462