Skip to content

Commit f60666c

Browse files
committed
Reword published/completed to uploaded/published
1 parent 7e4764a commit f60666c

File tree

9 files changed

+76
-72
lines changed

9 files changed

+76
-72
lines changed

crates/cargo-test-support/src/compare.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ fn substitute_macros(input: &str) -> String {
211211
("[DOWNLOADING]", " Downloading"),
212212
("[DOWNLOADED]", " Downloaded"),
213213
("[UPLOADING]", " Uploading"),
214+
("[UPLOADED]", " Uploaded"),
214215
("[VERIFYING]", " Verifying"),
215216
("[ARCHIVING]", " Archiving"),
216217
("[INSTALLING]", " Installing"),

src/cargo/ops/registry.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,12 @@ fn wait_for_publish(
453453
let now = std::time::Instant::now();
454454
let sleep_time = std::time::Duration::from_secs(1);
455455
let max = timeout.as_secs() as usize;
456-
config.shell().status("Published", pkg.to_string())?;
457456
// Short does not include the registry name.
458457
let short_pkg_description = format!("{} v{}", pkg.name(), pkg.version());
458+
config.shell().status(
459+
"Uploaded",
460+
format!("{short_pkg_description} to {source_description}"),
461+
)?;
459462
config.shell().note(format!(
460463
"Waiting up to {max} seconds for `{short_pkg_description}` to be available at {source_description}.\n\
461464
You may press ctrl-c to skip waiting; the crate should be available shortly."
@@ -505,8 +508,8 @@ fn wait_for_publish(
505508
};
506509
if is_available {
507510
config.shell().status(
508-
"Completed",
509-
format!("{pkg} has been successfully published to {source_description}"),
511+
"Published",
512+
format!("{short_pkg_description} at {source_description}"),
510513
)?;
511514
}
512515

tests/testsuite/artifact_dep.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,10 +1911,10 @@ fn publish_artifact_dep() {
19111911
[PACKAGING] foo v0.1.0 [..]
19121912
[PACKAGED] [..]
19131913
[UPLOADING] foo v0.1.0 [..]
1914-
[PUBLISHED] foo v0.1.0 [..]
1914+
[UPLOADED] foo v0.1.0 [..]
19151915
note: Waiting [..]
19161916
You may press ctrl-c [..]
1917-
[COMPLETED] foo v0.1.0 [..]
1917+
[PUBLISHED] foo v0.1.0 [..]
19181918
",
19191919
)
19201920
.run();

tests/testsuite/credential_process.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ Only one of these values may be set, remove one or the other to proceed.
130130
[PACKAGING] foo v0.1.0 [..]
131131
[PACKAGED] [..]
132132
[UPLOADING] foo v0.1.0 [..]
133-
[PUBLISHED] foo v0.1.0 [..]
133+
[UPLOADED] foo v0.1.0 [..]
134134
note: Waiting [..]
135135
You may press ctrl-c [..]
136-
[COMPLETED] foo v0.1.0 [..]
136+
[PUBLISHED] foo v0.1.0 [..]
137137
",
138138
)
139139
.run();
@@ -225,10 +225,10 @@ fn publish() {
225225
[PACKAGING] foo v0.1.0 [..]
226226
[PACKAGED] [..]
227227
[UPLOADING] foo v0.1.0 [..]
228-
[PUBLISHED] foo v0.1.0 [..]
228+
[UPLOADED] foo v0.1.0 [..]
229229
note: Waiting [..]
230230
You may press ctrl-c [..]
231-
[COMPLETED] foo v0.1.0 [..]
231+
[PUBLISHED] foo v0.1.0 [..]
232232
",
233233
)
234234
.run();

tests/testsuite/cross_publish.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ fn publish_with_target() {
112112
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
113113
[PACKAGED] [..]
114114
[UPLOADING] foo v0.0.0 ([CWD])
115-
[PUBLISHED] foo v0.0.0 ([CWD])
115+
[UPLOADED] foo v0.0.0 to registry `crates-io`
116116
note: Waiting [..]
117117
You may press ctrl-c [..]
118-
[COMPLETED] foo v0.0.0 [..]
118+
[PUBLISHED] foo v0.0.0 at registry `crates-io`
119119
",
120120
)
121121
.run();

tests/testsuite/features_namespaced.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -894,10 +894,10 @@ fn publish_no_implicit() {
894894
[PACKAGING] foo v0.1.0 [..]
895895
[PACKAGED] [..]
896896
[UPLOADING] foo v0.1.0 [..]
897-
[PUBLISHED] foo v0.1.0 [..]
897+
[UPLOADED] foo v0.1.0 [..]
898898
note: Waiting [..]
899899
You may press ctrl-c [..]
900-
[COMPLETED] foo v0.1.0 [..]
900+
[PUBLISHED] foo v0.1.0 [..]
901901
",
902902
)
903903
.run();
@@ -1016,10 +1016,10 @@ fn publish() {
10161016
[FINISHED] [..]
10171017
[PACKAGED] [..]
10181018
[UPLOADING] foo v0.1.0 [..]
1019-
[PUBLISHED] foo v0.1.0 [..]
1019+
[UPLOADED] foo v0.1.0 [..]
10201020
note: Waiting [..]
10211021
You may press ctrl-c [..]
1022-
[COMPLETED] foo v0.1.0 [..]
1022+
[PUBLISHED] foo v0.1.0 [..]
10231023
",
10241024
)
10251025
.run();

0 commit comments

Comments
 (0)