Skip to content

Commit

Permalink
vendor: Dart CI Failing Fix. Upgrade Dart packages: tar and lints (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
jawad111 authored Feb 4, 2025
1 parent b844c2d commit 4ceea6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vendor/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies:
path: ^1.8.0
logging: ^1.0.2
io: ^1.0.3
tar: ^0.5.1
tar: ^2.0.0
pubspec_parse: ^1.2.0
dev_dependencies:
shelf: ^1.2.0
Expand All @@ -35,6 +35,6 @@ dev_dependencies:
build_runner: ^2.1.4
build_version: ^2.1.0
chunked_stream: ^1.4.1
lints: ^2.0.1
lints: ^5.0.0
environment:
sdk: '>=2.14.0 <3.0.0'
3 changes: 2 additions & 1 deletion vendor/test/pub_test_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,14 @@ Stream<TarEntry> _descriptorToTarEntries(
if (descriptor is d.FileDescriptor) {
final data = await collectBytes(descriptor.readAsBytes());
yield TarEntry.data(
TarHeader(name: path, size: data.length),
TarHeader(name: path, mode: 0, size: data.length),
data,
);
} else if (descriptor is d.DirectoryDescriptor) {
yield TarEntry.data(
TarHeader(
name: path,
mode: 0,
typeFlag: TypeFlag.dir,
),
[],
Expand Down

0 comments on commit 4ceea6e

Please sign in to comment.