File tree 2 files changed +7
-6
lines changed
tests/testsuite/cargo_add/add_no_vendored_packages_with_vendor
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ pub enum QueryKind {
180
180
/// whereas an `Registry` source may return dependencies that have the same
181
181
/// canonicalization.
182
182
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.
184
184
/// Each source defines what normalizing means.
185
185
Normalized ,
186
186
}
Original file line number Diff line number Diff line change 1
- use cargo_test_support:: ProjectBuilder ;
2
1
use cargo_test_support:: compare:: assert_ui;
3
2
use cargo_test_support:: paths;
4
3
use cargo_test_support:: prelude:: * ;
4
+ use cargo_test_support:: ProjectBuilder ;
5
5
6
6
use cargo_test_support:: curr_dir;
7
7
@@ -20,8 +20,9 @@ fn case() {
20
20
. publish ( ) ;
21
21
22
22
let project = ProjectBuilder :: new ( paths:: root ( ) . join ( "in" ) )
23
- . file ( ".cargo/config" ,
24
- r#"
23
+ . file (
24
+ ".cargo/config" ,
25
+ r#"
25
26
[source.crates-io]
26
27
replace-with = "vendored-sources"
27
28
@@ -32,7 +33,7 @@ directory = "./vendor"
32
33
. file ( "src/lib.rs" , "" )
33
34
. file (
34
35
"Cargo.toml" ,
35
- r#"
36
+ r#"
36
37
[workspace]
37
38
38
39
[package]
@@ -43,7 +44,7 @@ version = "0.0.0"
43
44
. build ( ) ;
44
45
let project_root = project. root ( ) ;
45
46
let cwd = & project_root;
46
-
47
+
47
48
snapbox:: cmd:: Command :: cargo_ui ( )
48
49
. arg ( "add" )
49
50
. arg_line ( "linked_hash_map --registry alternative" )
You can’t perform that action at this time.
0 commit comments