File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,11 @@ pub async fn command_upload_release_distributions(args: &ArgMatches<'_>) -> Resu
245
245
} ;
246
246
247
247
for filename in wanted_filenames. intersection ( & filenames) {
248
+ if release. assets . iter ( ) . any ( |asset| & asset. name == filename) {
249
+ println ! ( "release asset {} already present; skipping" , filename) ;
250
+ continue ;
251
+ }
252
+
248
253
let path = dist_dir. join ( filename) ;
249
254
let file_data = std:: fs:: read ( & path) ?;
250
255
@@ -269,11 +274,6 @@ pub async fn command_upload_release_distributions(args: &ArgMatches<'_>) -> Resu
269
274
270
275
let response = client. execute ( request) . await ?;
271
276
272
- if response. status ( ) == 422 {
273
- println ! ( "HTTP 422 when uploading {}; ignoring" , filename) ;
274
- continue ;
275
- }
276
-
277
277
if !response. status ( ) . is_success ( ) {
278
278
return Err ( anyhow ! ( "HTTP {}" , response. status( ) ) ) ;
279
279
}
You can’t perform that action at this time.
0 commit comments