cherry-pick(#12864): chore: fix modification dates in driver (#12875)

This commit is contained in:
Max Schmitt 2022-03-18 17:36:27 +01:00 committed by GitHub
parent f2bdeb29ef
commit 39abfd6481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,13 @@ function build {
echo "Unsupported RUN_DRIVER ${RUN_DRIVER}"
exit 1
fi
# NPM install does intentionally set the modification date back to 1985 for all the files. This confuses language binding
# update mechanisms, which expect the modification date to be recent to decide which file to override. See:
# - https://github.com/npm/npm/issues/20439#issuecomment-385121133
# - https://github.com/microsoft/playwright-dotnet/issues/2069
find . -type f -exec touch {} +
zip -q -r ../playwright-${PACKAGE_VERSION}-${SUFFIX}.zip .
}