Skip to content

Commit 460d917

Browse files
committed
Reword published/completed to uploaded/published
1 parent f7613ec commit 460d917

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
@@ -210,6 +210,7 @@ fn substitute_macros(input: &str) -> String {
210210
("[DOWNLOADING]", " Downloading"),
211211
("[DOWNLOADED]", " Downloaded"),
212212
("[UPLOADING]", " Uploading"),
213+
("[UPLOADED]", " Uploaded"),
213214
("[VERIFYING]", " Verifying"),
214215
("[ARCHIVING]", " Archiving"),
215216
("[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
@@ -1921,10 +1921,10 @@ fn publish_artifact_dep() {
19211921
[PACKAGING] foo v0.1.0 [..]
19221922
[PACKAGED] [..]
19231923
[UPLOADING] foo v0.1.0 [..]
1924-
[PUBLISHED] foo v0.1.0 [..]
1924+
[UPLOADED] foo v0.1.0 [..]
19251925
note: Waiting [..]
19261926
You may press ctrl-c [..]
1927-
[COMPLETED] foo v0.1.0 [..]
1927+
[PUBLISHED] foo v0.1.0 [..]
19281928
",
19291929
)
19301930
.run();

tests/testsuite/credential_process.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ Only one of these values may be set, remove one or the other to proceed.
138138
[PACKAGING] foo v0.1.0 [..]
139139
[PACKAGED] [..]
140140
[UPLOADING] foo v0.1.0 [..]
141-
[PUBLISHED] foo v0.1.0 [..]
141+
[UPLOADED] foo v0.1.0 [..]
142142
note: Waiting [..]
143143
You may press ctrl-c [..]
144-
[COMPLETED] foo v0.1.0 [..]
144+
[PUBLISHED] foo v0.1.0 [..]
145145
",
146146
)
147147
.run();
@@ -233,10 +233,10 @@ fn publish() {
233233
[PACKAGING] foo v0.1.0 [..]
234234
[PACKAGED] [..]
235235
[UPLOADING] foo v0.1.0 [..]
236-
[PUBLISHED] foo v0.1.0 [..]
236+
[UPLOADED] foo v0.1.0 [..]
237237
note: Waiting [..]
238238
You may press ctrl-c [..]
239-
[COMPLETED] foo v0.1.0 [..]
239+
[PUBLISHED] foo v0.1.0 [..]
240240
",
241241
)
242242
.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
@@ -904,10 +904,10 @@ fn publish_no_implicit() {
904904
[PACKAGING] foo v0.1.0 [..]
905905
[PACKAGED] [..]
906906
[UPLOADING] foo v0.1.0 [..]
907-
[PUBLISHED] foo v0.1.0 [..]
907+
[UPLOADED] foo v0.1.0 [..]
908908
note: Waiting [..]
909909
You may press ctrl-c [..]
910-
[COMPLETED] foo v0.1.0 [..]
910+
[PUBLISHED] foo v0.1.0 [..]
911911
",
912912
)
913913
.run();
@@ -1035,10 +1035,10 @@ fn publish() {
10351035
[FINISHED] [..]
10361036
[PACKAGED] [..]
10371037
[UPLOADING] foo v0.1.0 [..]
1038-
[PUBLISHED] foo v0.1.0 [..]
1038+
[UPLOADED] foo v0.1.0 [..]
10391039
note: Waiting [..]
10401040
You may press ctrl-c [..]
1041-
[COMPLETED] foo v0.1.0 [..]
1041+
[PUBLISHED] foo v0.1.0 [..]
10421042
",
10431043
)
10441044
.run();

0 commit comments

Comments
 (0)