The e2e tests started to fail on the Linux stack. After some investigation I have found that the Dart team deprecated the way they were handling the packages and now there is a new json based variant:
https://github.com/dart-lang/sdk/issues/48272
They were generously generating the old version too for backwards compatibility but after a certain version it will be completely removed.
This PR introduces handling this new json format.
Changes
The step will first try to parse the old .packages file. If it fails then it will also try to parse the new .dart_tool/package_config.json one.
Checklist
step.yml
andREADME.md
is updated with the changes (if needed)Version
Requires a PATCH version update
Context
The e2e tests started to fail on the Linux stack. After some investigation I have found that the Dart team deprecated the way they were handling the packages and now there is a new json based variant: https://github.com/dart-lang/sdk/issues/48272
They were generously generating the old version too for backwards compatibility but after a certain version it will be completely removed.
This PR introduces handling this new json format.
Changes
The step will first try to parse the old
.packages
file. If it fails then it will also try to parse the new.dart_tool/package_config.json
one.