pre-commit/pre_commit/resources
Byoungchan Lee f1cc7a445f Make Dart pre-commit hook compatible with the latest Dart SDKs
Dart introduced sound null safety in version 2.12.0, and as of Dart 3,
null safety is mandatory. Older Dart SDKs allowed both pre-null safety
and null-safe packages, but modern Dart SDKs, where most source code is
null-safe, now reject pre-null safety packages.

The current `pubspec.yaml` template with `sdk: '>=2.10.0'` is
incompatible with recent Dart SDKs, leading to the following error:

An unexpected error has occurred: CalledProcessError: command: ('/path/to/dart-sdk/bin/dart', 'pub', 'get')
return code: 65
stdout:
    Resolving dependencies...
stderr:
    The lower bound of "sdk: '>=2.10.0'" must be 2.12.0'
    or higher to enable null safety.

    The current Dart SDK (3.8.3) only supports null safety.

    For details, see https://dart.dev/null-safety

To ensure compatibility with the modern Dart ecosystem, this commit
updates the minimum Dart SDK version to 2.12.0 or higher,
which implicitly supports null safety.
Additionally, `testing/get-dart.sh` has been updated to verify that
the pre-commit hook functions correctly with the latest Dart versions.
2025-08-08 17:14:59 +09:00
..
__init__.py Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
empty_template_.npmignore Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
empty_template_activate.R Avoid warnings with R hooks when renv version don't match 2021-05-04 18:56:43 -07:00
empty_template_Cargo.toml Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
empty_template_environment.yml Support for conda as a language 2019-12-20 18:43:59 -08:00
empty_template_go.mod Use more inclusive language 2021-05-14 19:11:05 -07:00
empty_template_LICENSE.renv Avoid warnings with R hooks when renv version don't match 2021-05-04 18:56:43 -07:00
empty_template_main.go Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
empty_template_main.rs Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
empty_template_Makefile.PL Use more inclusive language 2021-05-14 19:11:05 -07:00
empty_template_package.json Use more inclusive language 2021-05-14 19:11:05 -07:00
empty_template_pre-commit-package-dev-1.rockspec Add naive and untested version of Lua language support. 2022-01-17 13:43:38 -05:00
empty_template_pre_commit_placeholder_package.gemspec Use more inclusive language 2021-05-14 19:11:05 -07:00
empty_template_pubspec.yaml Make Dart pre-commit hook compatible with the latest Dart SDKs 2025-08-08 17:14:59 +09:00
empty_template_renv.lock add support for R via renv 2021-03-07 13:58:14 -08:00
empty_template_setup.py fix python 2.7 repo: local hooks 2022-04-02 21:19:13 -04:00
hook-tmpl fix indent in hook-tmpl 2021-10-30 12:11:52 -04:00
rbenv.tar.gz regenerate archives with python3.12 2024-09-28 13:07:38 -04:00
ruby-build.tar.gz regenerate ruby-build archive 2024-09-28 13:07:55 -04:00
ruby-download.tar.gz regenerate archives with python3.12 2024-09-28 13:07:38 -04:00