File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
tests/testsuite/cargo_add/add_no_vendored_packages_with_vendor Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ pub enum QueryKind {
180180 /// whereas an `Registry` source may return dependencies that have the same
181181 /// canonicalization.
182182 Alternatives ,
183- /// Match a denpendency in all ways and will normalize the package name.
183+ /// Match a denpendency in all ways and will normalize the package name.
184184 /// Each source defines what normalizing means.
185185 Normalized ,
186186}
Original file line number Diff line number Diff line change 1- use cargo_test_support:: ProjectBuilder ;
21use cargo_test_support:: compare:: assert_ui;
32use cargo_test_support:: paths;
43use cargo_test_support:: prelude:: * ;
4+ use cargo_test_support:: ProjectBuilder ;
55
66use cargo_test_support:: curr_dir;
77
@@ -20,8 +20,9 @@ fn case() {
2020 . publish ( ) ;
2121
2222 let project = ProjectBuilder :: new ( paths:: root ( ) . join ( "in" ) )
23- . file ( ".cargo/config" ,
24- r#"
23+ . file (
24+ ".cargo/config" ,
25+ r#"
2526[source.crates-io]
2627replace-with = "vendored-sources"
2728
@@ -32,7 +33,7 @@ directory = "./vendor"
3233 . file ( "src/lib.rs" , "" )
3334 . file (
3435 "Cargo.toml" ,
35- r#"
36+ r#"
3637[workspace]
3738
3839[package]
@@ -43,7 +44,7 @@ version = "0.0.0"
4344 . build ( ) ;
4445 let project_root = project. root ( ) ;
4546 let cwd = & project_root;
46-
47+
4748 snapbox:: cmd:: Command :: cargo_ui ( )
4849 . arg ( "add" )
4950 . arg_line ( "linked_hash_map --registry alternative" )
You can’t perform that action at this time.
0 commit comments