File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ final class ExportedPackage {
270
270
/// Interace for writing `/api/archives/<package>-<version>.tar.gz` .
271
271
ExportedBlob tarball (String version) => ExportedBlob ._(
272
272
_owner,
273
- '/api/archives/$_package -${ Uri . encodeComponent ( version )} .tar.gz' ,
273
+ '/api/archives/$_package -$version .tar.gz' ,
274
274
'$_package -$version .tar.gz' ,
275
275
'application/octet' ,
276
276
Duration (hours: 2 ),
@@ -313,9 +313,7 @@ final class ExportedPackage {
313
313
);
314
314
return ;
315
315
}
316
- final version = Uri .decodeComponent (
317
- item.name.without (prefix: pfx, suffix: '.tar.gz' ),
318
- );
316
+ final version = item.name.without (prefix: pfx, suffix: '.tar.gz' );
319
317
320
318
final info = versions[version];
321
319
if (info != null && ! forceWrite) {
@@ -373,7 +371,7 @@ final class ExportedPackage {
373
371
return ;
374
372
}
375
373
final version = item.name.without (prefix: pfx, suffix: '.tar.gz' );
376
- if (allVersionNumbers.contains (Uri . decodeComponent ( version) )) {
374
+ if (allVersionNumbers.contains (version)) {
377
375
return ;
378
376
}
379
377
if (await _owner._bucket.tryInfo (item.name) case final info? ) {
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ void main() {
175
175
[1 , 2 , 3 ],
176
176
);
177
177
expect (
178
- await bucket.readBytes ('latest/api/archives/_foo-1.2.3-dev%2B2 .tar.gz' ),
178
+ await bucket.readBytes ('latest/api/archives/_foo-1.2.3-dev+2 .tar.gz' ),
179
179
[1 , 2 , 3 ],
180
180
);
181
181
expect (
@@ -184,7 +184,7 @@ void main() {
184
184
);
185
185
expect (
186
186
await bucket
187
- .readBytes ('latest/api/archives/_foo-1.2.3-d%2B4 .tar.gz.tar.gz' ),
187
+ .readBytes ('latest/api/archives/_foo-1.2.3-d+4 .tar.gz.tar.gz' ),
188
188
[42 ],
189
189
);
190
190
});
@@ -309,7 +309,7 @@ void main() {
309
309
[2 , 0 , 0 ],
310
310
);
311
311
expect (
312
- await bucket.readBytes ('latest/api/archives/retry-3.0.0%2B1 .tar.gz' ),
312
+ await bucket.readBytes ('latest/api/archives/retry-3.0.0+1 .tar.gz' ),
313
313
[3 , 0 , 0 ],
314
314
);
315
315
@@ -333,7 +333,7 @@ void main() {
333
333
[2 , 0 , 0 ],
334
334
);
335
335
expect (
336
- await bucket.readBytes ('latest/api/archives/retry-3.0.0%2B1 .tar.gz' ),
336
+ await bucket.readBytes ('latest/api/archives/retry-3.0.0+1 .tar.gz' ),
337
337
[3 , 0 , 0 ],
338
338
);
339
339
});
You can’t perform that action at this time.
0 commit comments