Merge pull request #3507 from bc-lee/dart-fix

Make Dart pre-commit hook compatible with the latest Dart SDKs
This commit is contained in:
Anthony Sottile 2025-08-09 14:03:07 -04:00 committed by GitHub
commit cc899de192
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
name: pre_commit_empty_pubspec name: pre_commit_empty_pubspec
environment: environment:
sdk: '>=2.10.0' sdk: '>=2.12.0'
executables: {} executables: {}

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
VERSION=2.13.4 VERSION=2.19.6
if [ "$OSTYPE" = msys ]; then if [ "$OSTYPE" = msys ]; then
URL="https://storage.googleapis.com/dart-archive/channels/stable/release/${VERSION}/sdk/dartsdk-windows-x64-release.zip" URL="https://storage.googleapis.com/dart-archive/channels/stable/release/${VERSION}/sdk/dartsdk-windows-x64-release.zip"

View file

@ -10,7 +10,7 @@ from testing.language_helpers import run_language
def test_dart(tmp_path): def test_dart(tmp_path):
pubspec_yaml = '''\ pubspec_yaml = '''\
environment: environment:
sdk: '>=2.10.0 <3.0.0' sdk: '>=2.12.0 <4.0.0'
name: hello_world_dart name: hello_world_dart