Skip to content

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

fix: don't use git status for workspace consistency (#29224)

Max Schmittf4b8ff9c95e3
diff --git a/utils/workspace.js b/utils/workspace.js
index 9e813414eb..f1e2aaa4d9 100755
--- a/utils/workspace.js
+++ b/utils/workspace.js
@@ -236,10 +236,6 @@ async function parseCLI() {
const hasChanges = await workspace.ensureConsistent();
if (hasChanges)
die(`\n ERROR: workspace is inconsistent! Run '//utils/workspace.js --ensure-consistent' and commit changes!`);
- // check that there are no dirty git files.
- const gitStatus = child_process.execSync('git status --porcelain').toString();
- if (gitStatus.trim())
- die(`\n ERROR: some git files are dirty, run build and commit changes!\n${gitStatus}`);
// Ensure lockfileVersion is 3
const packageLock = require(ROOT_PATH + '/package-lock.json');
if (packageLock.lockfileVersion !== 3)