Skip to content

Commit

Permalink
Try deleting overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Jan 8, 2024
1 parent f311eb7 commit bd25b02
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ jobs:
include:
- sdk: stable
run-tests: true
dependencies: [path, published]

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: ${{matrix.sdk}}

- run: dart run ../../tools/delete_pubspec_overrides.dart
if: ${{ matrix.dependencies == 'published' }}

- run: dart pub get

- run: (cd example_json; dart pub get)
Expand Down
6 changes: 6 additions & 0 deletions tools/delete_pubspec_overrides.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'dart:io';

void main(List<String> arguments) => Directory.current
.list(recursive: true)
.where((f) => f.path.endsWith('pubspec_overrides.yaml'))
.forEach((f) => f.deleteSync());

0 comments on commit bd25b02

Please sign in to comment.