File tree 2 files changed +3
-8
lines changed
src/cargo/ops/cargo_package
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -1068,7 +1068,8 @@ impl<'a> TmpRegistry<'a> {
1068
1068
v : Some ( 2 ) ,
1069
1069
} ) ?;
1070
1070
1071
- let file = cargo_util:: registry:: make_dep_path ( package. name ( ) . as_str ( ) , false ) ;
1071
+ let file =
1072
+ cargo_util:: registry:: make_dep_path ( & package. name ( ) . as_str ( ) . to_lowercase ( ) , false ) ;
1072
1073
let mut dst = self . index_path ( ) . open_rw_exclusive_create (
1073
1074
file,
1074
1075
self . gctx ,
Original file line number Diff line number Diff line change @@ -6478,19 +6478,13 @@ fn workspace_with_capitalized_member() {
6478
6478
p. cargo ( "package -Zpackage-workspace --no-verify" )
6479
6479
. masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
6480
6480
. replace_crates_io ( reg. index_url ( ) )
6481
- . with_status ( 101 )
6482
6481
. with_stderr_data (
6483
6482
str![ [ r#"
6484
6483
[PACKAGING] main v0.0.1 ([ROOT]/foo/main)
6485
6484
[UPDATING] crates.io index
6486
6485
[PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6487
6486
[PACKAGING] DEP v0.1.0 ([ROOT]/foo/dep)
6488
- [ERROR] failed to prepare local package for uploading
6489
-
6490
- Caused by:
6491
- no matching package named `DEP` found
6492
- location searched: crates.io index
6493
- required by package `main v0.0.1 ([ROOT]/foo/main)`
6487
+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6494
6488
6495
6489
"# ] ]
6496
6490
. unordered ( ) ,
You can’t perform that action at this time.
0 commit comments