@@ -836,6 +836,41 @@ fn alt_reg_metadata() {
836
836
r#"
837
837
{
838
838
"packages": [
839
+ {
840
+ "name": "altdep",
841
+ "version": "0.0.1",
842
+ "id": "altdep 0.0.1 (registry+file:[..]/alternative-registry)",
843
+ "license": null,
844
+ "license_file": null,
845
+ "description": null,
846
+ "source": "registry+file:[..]/alternative-registry",
847
+ "dependencies": [
848
+ {
849
+ "name": "bar",
850
+ "source": "registry+https://github.com/rust-lang/crates.io-index",
851
+ "req": "^0.0.1",
852
+ "kind": null,
853
+ "rename": null,
854
+ "optional": false,
855
+ "uses_default_features": true,
856
+ "features": [],
857
+ "target": null,
858
+ "registry": null
859
+ }
860
+ ],
861
+ "targets": "{...}",
862
+ "features": {},
863
+ "manifest_path": "[..]/altdep-0.0.1/Cargo.toml",
864
+ "metadata": null,
865
+ "publish": null,
866
+ "authors": [],
867
+ "categories": [],
868
+ "keywords": [],
869
+ "readme": null,
870
+ "repository": null,
871
+ "edition": "2015",
872
+ "links": null
873
+ },
839
874
{
840
875
"name": "altdep2",
841
876
"version": "0.0.1",
@@ -859,30 +894,17 @@ fn alt_reg_metadata() {
859
894
"links": null
860
895
},
861
896
{
862
- "name": "altdep ",
897
+ "name": "bar ",
863
898
"version": "0.0.1",
864
- "id": "altdep 0.0.1 (registry+file:[..]/alternative-registry )",
899
+ "id": "bar 0.0.1 (registry+https://github.com/rust-lang/crates.io-index )",
865
900
"license": null,
866
901
"license_file": null,
867
902
"description": null,
868
- "source": "registry+file:[..]/alternative-registry",
869
- "dependencies": [
870
- {
871
- "name": "bar",
872
- "source": "registry+https://github.com/rust-lang/crates.io-index",
873
- "req": "^0.0.1",
874
- "kind": null,
875
- "rename": null,
876
- "optional": false,
877
- "uses_default_features": true,
878
- "features": [],
879
- "target": null,
880
- "registry": null
881
- }
882
- ],
903
+ "source": "registry+https://github.com/rust-lang/crates.io-index",
904
+ "dependencies": [],
883
905
"targets": "{...}",
884
906
"features": {},
885
- "manifest_path": "[..]/altdep -0.0.1/Cargo.toml",
907
+ "manifest_path": "[..]/bar -0.0.1/Cargo.toml",
886
908
"metadata": null,
887
909
"publish": null,
888
910
"authors": [],
@@ -974,28 +996,6 @@ fn alt_reg_metadata() {
974
996
"repository": null,
975
997
"edition": "2015",
976
998
"links": null
977
- },
978
- {
979
- "name": "bar",
980
- "version": "0.0.1",
981
- "id": "bar 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
982
- "license": null,
983
- "license_file": null,
984
- "description": null,
985
- "source": "registry+https://github.com/rust-lang/crates.io-index",
986
- "dependencies": [],
987
- "targets": "{...}",
988
- "features": {},
989
- "manifest_path": "[..]/bar-0.0.1/Cargo.toml",
990
- "metadata": null,
991
- "publish": null,
992
- "authors": [],
993
- "categories": [],
994
- "keywords": [],
995
- "readme": null,
996
- "repository": null,
997
- "edition": "2015",
998
- "links": null
999
999
}
1000
1000
],
1001
1001
"workspace_members": [
@@ -1056,14 +1056,27 @@ fn unknown_registry() {
1056
1056
{
1057
1057
"packages": [
1058
1058
{
1059
- "name": "baz ",
1059
+ "name": "bar ",
1060
1060
"version": "0.0.1",
1061
- "id": "baz 0.0.1 (registry+file ://[..]/alternative-registry )",
1061
+ "id": "bar 0.0.1 (registry+https ://github.com/rust-lang/crates.io-index )",
1062
1062
"license": null,
1063
1063
"license_file": null,
1064
1064
"description": null,
1065
- "source": "registry+file://[..]/alternative-registry",
1066
- "dependencies": [],
1065
+ "source": "registry+https://github.com/rust-lang/crates.io-index",
1066
+ "dependencies": [
1067
+ {
1068
+ "name": "baz",
1069
+ "source": "registry+file://[..]/alternative-registry",
1070
+ "req": "^0.0.1",
1071
+ "kind": null,
1072
+ "rename": null,
1073
+ "optional": false,
1074
+ "uses_default_features": true,
1075
+ "features": [],
1076
+ "target": null,
1077
+ "registry": "file:[..]/alternative-registry"
1078
+ }
1079
+ ],
1067
1080
"targets": "{...}",
1068
1081
"features": {},
1069
1082
"manifest_path": "[..]",
@@ -1078,30 +1091,17 @@ fn unknown_registry() {
1078
1091
"links": null
1079
1092
},
1080
1093
{
1081
- "name": "foo ",
1094
+ "name": "baz ",
1082
1095
"version": "0.0.1",
1083
- "id": "foo 0.0.1 (path +file://[..]/foo )",
1096
+ "id": "baz 0.0.1 (registry +file://[..]/alternative-registry )",
1084
1097
"license": null,
1085
1098
"license_file": null,
1086
1099
"description": null,
1087
- "source": null,
1088
- "dependencies": [
1089
- {
1090
- "name": "bar",
1091
- "source": "registry+https://github.com/rust-lang/crates.io-index",
1092
- "req": "^0.0.1",
1093
- "kind": null,
1094
- "rename": null,
1095
- "optional": false,
1096
- "uses_default_features": true,
1097
- "features": [],
1098
- "target": null,
1099
- "registry": null
1100
- }
1101
- ],
1100
+ "source": "registry+file://[..]/alternative-registry",
1101
+ "dependencies": [],
1102
1102
"targets": "{...}",
1103
1103
"features": {},
1104
- "manifest_path": "[..]/foo/Cargo.toml ",
1104
+ "manifest_path": "[..]",
1105
1105
"metadata": null,
1106
1106
"publish": null,
1107
1107
"authors": [],
@@ -1113,30 +1113,30 @@ fn unknown_registry() {
1113
1113
"links": null
1114
1114
},
1115
1115
{
1116
- "name": "bar ",
1116
+ "name": "foo ",
1117
1117
"version": "0.0.1",
1118
- "id": "bar 0.0.1 (registry+https ://github.com/rust-lang/crates.io-index )",
1118
+ "id": "foo 0.0.1 (path+file ://[..]/foo )",
1119
1119
"license": null,
1120
1120
"license_file": null,
1121
1121
"description": null,
1122
- "source": "registry+https://github.com/rust-lang/crates.io-index" ,
1122
+ "source": null ,
1123
1123
"dependencies": [
1124
1124
{
1125
- "name": "baz ",
1126
- "source": "registry+file ://[..]/alternative-registry ",
1125
+ "name": "bar ",
1126
+ "source": "registry+https ://github.com/rust-lang/crates.io-index ",
1127
1127
"req": "^0.0.1",
1128
1128
"kind": null,
1129
1129
"rename": null,
1130
1130
"optional": false,
1131
1131
"uses_default_features": true,
1132
1132
"features": [],
1133
1133
"target": null,
1134
- "registry": "file:[..]/alternative-registry"
1134
+ "registry": null
1135
1135
}
1136
1136
],
1137
1137
"targets": "{...}",
1138
1138
"features": {},
1139
- "manifest_path": "[..]",
1139
+ "manifest_path": "[..]/foo/Cargo.toml ",
1140
1140
"metadata": null,
1141
1141
"publish": null,
1142
1142
"authors": [],
0 commit comments