@@ -925,7 +925,7 @@ fn dry_run_update() {
925
925
[LOCKING] 1 package to latest compatible version
926
926
[UPDATING] serde v0.1.0 -> v0.1.1
927
927
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
928
- [WARNING] not updating lockfile due to dry run
928
+ [WARNING] aborting update due to dry run
929
929
930
930
"# ] ] )
931
931
. run ( ) ;
@@ -1524,7 +1524,7 @@ fn report_behind() {
1524
1524
[LOCKING] 1 package to latest compatible version
1525
1525
[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
1526
1526
[NOTE] pass `--verbose` to see 2 unchanged dependencies behind latest
1527
- [WARNING] not updating lockfile due to dry run
1527
+ [WARNING] aborting update due to dry run
1528
1528
1529
1529
"# ] ] )
1530
1530
. run ( ) ;
@@ -1537,7 +1537,7 @@ fn report_behind() {
1537
1537
[UNCHANGED] pre v1.0.0-alpha.0 (latest: v1.0.0-alpha.1)
1538
1538
[UNCHANGED] two-ver v0.1.0 (latest: v0.2.0)
1539
1539
[NOTE] to see how you depend on a package, run `cargo tree --invert --package <dep>@<ver>`
1540
- [WARNING] not updating lockfile due to dry run
1540
+ [WARNING] aborting update due to dry run
1541
1541
1542
1542
"# ] ] )
1543
1543
. run ( ) ;
@@ -1549,7 +1549,7 @@ fn report_behind() {
1549
1549
[UPDATING] `dummy-registry` index
1550
1550
[LOCKING] 0 packages to latest compatible versions
1551
1551
[NOTE] pass `--verbose` to see 3 unchanged dependencies behind latest
1552
- [WARNING] not updating lockfile due to dry run
1552
+ [WARNING] aborting update due to dry run
1553
1553
1554
1554
"# ] ] )
1555
1555
. run ( ) ;
@@ -1562,7 +1562,7 @@ fn report_behind() {
1562
1562
[UNCHANGED] pre v1.0.0-alpha.0 (latest: v1.0.0-alpha.1)
1563
1563
[UNCHANGED] two-ver v0.1.0 (latest: v0.2.0)
1564
1564
[NOTE] to see how you depend on a package, run `cargo tree --invert --package <dep>@<ver>`
1565
- [WARNING] not updating lockfile due to dry run
1565
+ [WARNING] aborting update due to dry run
1566
1566
1567
1567
"# ] ] )
1568
1568
. run ( ) ;
@@ -1912,10 +1912,13 @@ fn update_breaking() {
1912
1912
[UPDATING] multiple-registries v2.0.0 (registry `alternative`) -> v3.0.0
1913
1913
[UPDATING] multiple-registries v1.0.0 -> v2.0.0
1914
1914
[UPDATING] multiple-source-types v1.0.0 -> v2.0.0
1915
+ [REMOVING] multiple-versions v1.0.0
1916
+ [REMOVING] multiple-versions v2.0.0
1915
1917
[ADDING] multiple-versions v3.0.0
1916
1918
[UPDATING] platform-specific v1.0.0 -> v2.0.0
1917
1919
[UPDATING] shared v1.0.0 -> v2.0.0
1918
1920
[UPDATING] ws v1.0.0 -> v2.0.0
1921
+ [NOTE] pass `--verbose` to see 4 unchanged dependencies behind latest
1919
1922
1920
1923
"# ] ] )
1921
1924
. run ( ) ;
@@ -2108,6 +2111,7 @@ fn update_breaking_specific_packages() {
2108
2111
[UPDATING] transitive-compatible v1.0.0 -> v1.0.1
2109
2112
[UPDATING] transitive-incompatible v1.0.0 -> v2.0.0
2110
2113
[UPDATING] ws v1.0.0 -> v2.0.0
2114
+ [NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
2111
2115
2112
2116
"# ] ] )
2113
2117
. run ( ) ;
@@ -2163,6 +2167,8 @@ fn update_breaking_specific_packages_that_wont_update() {
2163
2167
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2164
2168
. with_stderr_data ( str![ [ r#"
2165
2169
[UPDATING] `dummy-registry` index
2170
+ [LOCKING] 0 packages to latest compatible versions
2171
+ [NOTE] pass `--verbose` to see 5 unchanged dependencies behind latest
2166
2172
2167
2173
"# ] ] )
2168
2174
. run ( ) ;
@@ -2271,13 +2277,27 @@ fn update_breaking_spec_version() {
2271
2277
// Spec version not matching our current dependencies
2272
2278
p
. cargo ( "update -Zunstable-options --breaking [email protected] " )
2273
2279
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2274
- . with_stderr_data ( str![ [ r#""# ] ] )
2280
+ . with_status ( 101 )
2281
+ . with_stderr_data ( str![ [ r#"
2282
+ [ERROR] package ID specification `[email protected] ` did not match any packages
2283
+ Did you mean one of these?
2284
+
2285
+
2286
+
2287
+ "# ] ] )
2275
2288
. run ( ) ;
2276
2289
2277
2290
// Spec source not matching our current dependencies
2278
2291
p
. cargo ( "update -Zunstable-options --breaking https://alternative.com#[email protected] " )
2279
2292
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2280
- . with_stderr_data ( str![ [ r#""# ] ] )
2293
+ . with_status ( 101 )
2294
+ . with_stderr_data ( str![ [ r#"
2295
+ [ERROR] package ID specification `https://alternative.com/#[email protected] ` did not match any packages
2296
+ Did you mean one of these?
2297
+
2298
+
2299
+
2300
+ "# ] ] )
2281
2301
. run ( ) ;
2282
2302
2283
2303
// Accepted spec
@@ -2288,6 +2308,7 @@ fn update_breaking_spec_version() {
2288
2308
[UPGRADING] incompatible ^1.0 -> ^2.0
2289
2309
[LOCKING] 1 package to latest compatible version
2290
2310
[UPDATING] incompatible v1.0.0 -> v2.0.0
2311
+ [NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
2291
2312
2292
2313
"# ] ] )
2293
2314
. run ( ) ;
@@ -2301,6 +2322,7 @@ fn update_breaking_spec_version() {
2301
2322
[UPGRADING] incompatible ^2.0 -> ^3.0
2302
2323
[LOCKING] 1 package to latest compatible version
2303
2324
[UPDATING] incompatible v2.0.0 -> v3.0.0
2325
+ [NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
2304
2326
2305
2327
"# ] ] )
2306
2328
. run ( ) ;
@@ -2310,19 +2332,35 @@ fn update_breaking_spec_version() {
2310
2332
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2311
2333
. with_stderr_data ( str![ [ r#"
2312
2334
[UPDATING] `dummy-registry` index
2335
+ [LOCKING] 0 packages to latest compatible versions
2336
+ [NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
2313
2337
2314
2338
"# ] ] )
2315
2339
. run ( ) ;
2316
2340
2317
2341
// Non-existing versions
2318
2342
p
. cargo ( "update -Zunstable-options --breaking [email protected] " )
2319
2343
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2320
- . with_stderr_data ( str![ [ r#""# ] ] )
2344
+ . with_status ( 101 )
2345
+ . with_stderr_data ( str![ [ r#"
2346
+ [ERROR] package ID specification `[email protected] ` did not match any packages
2347
+ Did you mean one of these?
2348
+
2349
+
2350
+
2351
+ "# ] ] )
2321
2352
. run ( ) ;
2322
2353
2323
2354
p
. cargo ( "update -Zunstable-options --breaking [email protected] " )
2324
2355
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2325
- . with_stderr_data ( str![ [ r#""# ] ] )
2356
+ . with_status ( 101 )
2357
+ . with_stderr_data ( str![ [ r#"
2358
+ [ERROR] package ID specification `[email protected] ` did not match any packages
2359
+ Did you mean one of these?
2360
+
2361
+
2362
+
2363
+ "# ] ] )
2326
2364
. run ( ) ;
2327
2365
}
2328
2366
@@ -2376,6 +2414,7 @@ fn update_breaking_spec_version_transitive() {
2376
2414
[UPGRADING] dep ^1.0 -> ^3.0
2377
2415
[LOCKING] 1 package to latest compatible version
2378
2416
[UPDATING] dep v1.0.0 -> v3.0.0
2417
+ [NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
2379
2418
2380
2419
"# ] ] )
2381
2420
. run ( ) ;
@@ -2385,6 +2424,8 @@ fn update_breaking_spec_version_transitive() {
2385
2424
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2386
2425
. with_stderr_data ( str![ [ r#"
2387
2426
[UPDATING] `dummy-registry` index
2427
+ [LOCKING] 0 packages to latest compatible versions
2428
+ [NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
2388
2429
2389
2430
"# ] ] )
2390
2431
. run ( ) ;
@@ -2453,6 +2494,8 @@ fn update_breaking_mixed_compatibility() {
2453
2494
[UPDATING] `dummy-registry` index
2454
2495
[UPGRADING] mixed-compatibility ^1.0 -> ^2.0
2455
2496
[LOCKING] 1 package to latest compatible version
2497
+ [REMOVING] mixed-compatibility v1.0.0
2498
+ [REMOVING] mixed-compatibility v2.0.0
2456
2499
[ADDING] mixed-compatibility v2.0.1
2457
2500
2458
2501
"# ] ] )
@@ -2544,6 +2587,7 @@ fn update_breaking_mixed_pinning_renaming() {
2544
2587
[ADDING] mixed-pinned v2.0.0
2545
2588
[ADDING] mixed-ws-pinned v2.0.0
2546
2589
[ADDING] renamed-from v2.0.0
2590
+ [NOTE] pass `--verbose` to see 3 unchanged dependencies behind latest
2547
2591
2548
2592
"# ] ] )
2549
2593
. run ( ) ;
0 commit comments