You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"\"{}\" is an invalid dependency name (dependency names must \
440
+
start with a letter, contain only letters, numbers, hyphens, \
441
+
or underscores and have at most {MAX_NAME_LENGTH} characters)",
442
+
dep.name
443
+
)));
444
+
}
445
+
436
446
ifletSome(registry) = &dep.registry{
437
447
if !registry.is_empty(){
438
-
returnErr(cargo_err(&format_args!("Dependency `{}` is hosted on another registry. Cross-registry dependencies are not permitted on crates.io.",&*dep.name)));
448
+
returnErr(cargo_err(&format_args!("Dependency `{}` is hosted on another registry. Cross-registry dependencies are not permitted on crates.io.", dep.name)));
Copy file name to clipboardExpand all lines: src/tests/krate/publish/snapshots/all__krate__publish__dependencies__invalid_dependency_name.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ expression: response.into_json()
5
5
{
6
6
"errors": [
7
7
{
8
-
"detail": "invalid upload request: invalid value: string \"🦀\", expected a valid crate name to start with a letter, contain only letters, numbers, hyphens, or underscores and have at most 64 characters at line 1 column 92"
8
+
"detail": "\"🦀\" is an invalid dependency name (dependency names must start with a letter, contain only letters, numbers, hyphens, or underscores and have at most 64 characters)"
0 commit comments