Commit 251d437
committed
Auto merge of #13367 - epage:new-creating, r=weihanglo
fix(new): Print a 'Creating', rather than 'Created' status
### What does this PR try to resolve?
This has bothered me about `cargo new` and `cargo init` for a while that
the output is read backwards, for example:
```diff
--- i/tests/testsuite/cargo_init/path_contains_separator/stderr.log
+++ w/tests/testsuite/cargo_init/path_contains_separator/stderr.log
`@@` -1,3 +1,3 `@@`
+ Creating binary (application) package
warning: the path `[ROOT]/case/test:ing/.` contains invalid PATH characters (usually `:`, `;`, or `"`)
It is recommended to use a different name to avoid problems.
- Created binary (application) package
```
### How should we test and review this PR?
### Additional informationFile tree
55 files changed
+92
-83
lines changed- crates/cargo-test-support/src
- src
- bin/cargo/commands
- cargo/ops
- tests/testsuite
- cargo_init
- auto_git
- bin_already_exists_explicit_nosrc
- bin_already_exists_explicit
- bin_already_exists_implicit_namenosrc
- bin_already_exists_implicit_namesrc
- bin_already_exists_implicit_nosrc
- bin_already_exists_implicit
- cant_create_library_when_both_binlib_present
- creates_binary_when_both_binlib_present
- creates_binary_when_instructed_and_has_lib_file
- creates_library_when_instructed_and_has_bin_file
- explicit_bin_with_git
- formats_source
- fossil_autodetect
- git_autodetect
- git_ignore_exists_no_conflicting_entries
- ignores_failure_to_format_source
- inferred_bin_with_git
- inferred_lib_with_git
- inherit_workspace_package_table
- invalid_dir_name
- lib_already_exists_nosrc
- lib_already_exists_src
- mercurial_autodetect
- path_contains_separator
- pijul_autodetect
- reserved_name
- simple_bin
- simple_git_ignore_exists
- simple_git
- simple_hg_ignore_exists
- simple_hg
- simple_lib
- with_argument
- workspace_add_member
- cargo_new
- add_members_to_workspace_format_previous_items
- add_members_to_workspace_format_sorted
- add_members_to_workspace_with_absolute_package_path
- add_members_to_workspace_with_empty_members
- add_members_to_workspace_with_exclude_list
- add_members_to_workspace_with_members_glob
- empty_name
- inherit_workspace_lints
- inherit_workspace_package_table_with_edition
- inherit_workspace_package_table_with_registry
- inherit_workspace_package_table_without_version
- inherit_workspace_package_table
- not_inherit_workspace_package_table_if_not_members
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
55 files changed
+92
-83
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
28 | 25 | | |
29 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 26 | | |
37 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
442 | 447 | | |
443 | 448 | | |
444 | 449 | | |
445 | 450 | | |
446 | 451 | | |
447 | 452 | | |
448 | 453 | | |
449 | | - | |
450 | 454 | | |
451 | 455 | | |
452 | 456 | | |
453 | 457 | | |
454 | | - | |
455 | 458 | | |
456 | 459 | | |
457 | 460 | | |
| |||
480 | 483 | | |
481 | 484 | | |
482 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
483 | 493 | | |
484 | 494 | | |
485 | 495 | | |
486 | 496 | | |
487 | | - | |
488 | 497 | | |
489 | 498 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments