Re: Updating a particular vendored crate by minor version
On Tue, May 2, 2017 at 3:11 PM, Kartikaya Guptawrote: > You can update a specific crate to a specific version like so: > > cd toolkit/library/rust > cargo update -p encoding_rs --precise > cd ../gtest/rust > cargo update -p encoding_rs --precise > cd ../../../../ > mach vendor rust Thank you. This works. Filed https://bugzilla.mozilla.org/show_bug.cgi?id=1361734 to get mach vendor to perform those steps. -- Henri Sivonen hsivo...@hsivonen.fi https://hsivonen.fi/ ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Updating a particular vendored crate by minor version
You can update a specific crate to a specific version like so: cd toolkit/library/rust cargo update -p encoding_rs --precise cd ../gtest/rust cargo update -p encoding_rs --precise cd ../../../../ mach vendor rust On Tue, May 2, 2017 at 4:38 AM, Henri Sivonenwrote: > I have toolkit/library/rust/shared/Cargo.toml depending on a crates.io > crate encoding_c, which depends on encoding_rs. > > Then I update the minor version of encoding_rs on crates.io but don't > update encoding_c. > > Now if I re-run ./mach vendor rust, nothing happens, because I didn't > change the encoding_c dependency version in > toolkit/library/rust/shared/Cargo.toml to force the dependencies to be > unsatisfied. > > If, instead, I delete toolkit/library/rust/shared/Cargo.lock and then > run ./mach vendor rust, I get minor version updates to all crates in > the dependency graph that have changed since they were vendored. > > Other than manually merging lock files and unstaging unrelated crate > changes, how do I scope the re-vendoring to encoding_rs only? > > -- > Henri Sivonen > hsivo...@hsivonen.fi > https://hsivonen.fi/ > ___ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Updating a particular vendored crate by minor version
I have toolkit/library/rust/shared/Cargo.toml depending on a crates.io crate encoding_c, which depends on encoding_rs. Then I update the minor version of encoding_rs on crates.io but don't update encoding_c. Now if I re-run ./mach vendor rust, nothing happens, because I didn't change the encoding_c dependency version in toolkit/library/rust/shared/Cargo.toml to force the dependencies to be unsatisfied. If, instead, I delete toolkit/library/rust/shared/Cargo.lock and then run ./mach vendor rust, I get minor version updates to all crates in the dependency graph that have changed since they were vendored. Other than manually merging lock files and unstaging unrelated crate changes, how do I scope the re-vendoring to encoding_rs only? -- Henri Sivonen hsivo...@hsivonen.fi https://hsivonen.fi/ ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform