mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
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:
commit
cc899de192
3 changed files with 3 additions and 3 deletions
|
|
@ -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: {}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue