fix: fix corepack install command (remove bad input/stdin)

This commit is contained in:
iamninja committed 2026-10-05 14:35:58 +05:00
1 parent fe754e15b9
commit 7e08280539
1 file changed
+1 -5
+1 -5
View File
@@ -2172,17 +2172,13 @@ def _build_frontend(src_frontend: Path, dest_frontend: Path):
if shutil.which("corepack"): if shutil.which("corepack"):
try: try:
# Enable corepack # Enable corepack
result = subprocess.run( subprocess.run(
["corepack", "enable"], ["corepack", "enable"],
input="",
stdin=subprocess.PIPE,
capture_output=True, capture_output=True,
timeout=10, timeout=10,
text=True,
check=False, check=False,
) )
if result.returncode == 0 or "already" in (result.stderr or "").lower():
# Install Yarn stable (4.x) # Install Yarn stable (4.x)
result = subprocess.run( result = subprocess.run(
["corepack", "install", "-g", "yarn@stable"], ["corepack", "install", "-g", "yarn@stable"],