File tree 1 file changed +18
-9
lines changed 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -175,15 +175,24 @@ impl Context {
175
175
176
176
// Quickly produce gzip compressed artifacts that are needed for successful manifest
177
177
// building.
178
- let recompress = [
179
- self . dl_dir ( )
180
- . join ( "rust-nightly-x86_64-unknown-linux-gnu.tar.xz" ) ,
181
- self . dl_dir ( )
182
- . join ( "cargo-nightly-x86_64-unknown-linux-gnu.tar.xz" ) ,
183
- ] ;
184
- recompress. par_iter ( ) . try_for_each ( |tarball| {
185
- recompress:: recompress_file ( tarball, false , flate2:: Compression :: fast ( ) , false )
186
- } ) ?;
178
+ //
179
+ // Nightly (1.71+) supports this upstream without the extra recompression, see
180
+ // https://github.com/rust-lang/rust/pull/110436.
181
+ if self . config . channel != Channel :: Nightly {
182
+ let recompress = [
183
+ self . dl_dir ( ) . join ( format ! (
184
+ "rust-{}-x86_64-unknown-linux-gnu.tar.xz" ,
185
+ self . config. channel
186
+ ) ) ,
187
+ self . dl_dir ( ) . join ( format ! (
188
+ "cargo-{}-x86_64-unknown-linux-gnu.tar.xz" ,
189
+ self . config. channel
190
+ ) ) ,
191
+ ] ;
192
+ recompress. par_iter ( ) . try_for_each ( |tarball| {
193
+ recompress:: recompress_file ( tarball, false , flate2:: Compression :: fast ( ) , false )
194
+ } ) ?;
195
+ }
187
196
188
197
// Ok we've now determined that a release needs to be done.
189
198
You can’t perform that action at this time.
0 commit comments