Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix modification dates in driver (#12864)

Max Schmittf3ffd328dd0e
diff --git a/utils/build/build-playwright-driver.sh b/utils/build/build-playwright-driver.sh
index ea1c7b2466..153b6027f4 100755
--- a/utils/build/build-playwright-driver.sh
+++ b/utils/build/build-playwright-driver.sh
@@ -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 .
}