fetchDartDeps: Use add milliseconds to date in package_config.json

This in compliance with the format specification.
https://github.com/dart-lang/language/blob/main/accepted/2.8/language-versioning/package-config-file-v2.md
This commit is contained in:
hacker1024 2023-10-24 21:14:19 +11:00 committed by Maciej Krüger
parent 03ae92a17d
commit 145c291ca6
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -203,7 +203,7 @@ let
# usage.
jq -S '
.packages[] |= . + { rootUri: .rootUri | gsub("'"$PUB_CACHE"'"; "${hook.deps}/cache/.pub-cache") }
| .generated |= "1970-01-01T00:00:00Z"
| .generated |= "1970-01-01T00:00:00.000Z"
' .dart_tool/package_config.json > $out
runHook postBuild