From 79e99f7e3ac8561648b117fbaae7f246ddad4605 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Feb 2023 14:31:30 +0530 Subject: [PATCH] Dont pass PWD to go build Fixes #6051 --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 5ebee891b..e00366971 100755 --- a/setup.py +++ b/setup.py @@ -928,6 +928,8 @@ def build_static_kittens( print(shlex.join(c)) e = os.environ.copy() e.update(env) + # https://github.com/kovidgoyal/kitty/issues/6051#issuecomment-1441369828 + e.pop('PWD', None) if for_platform: e['CGO_ENABLED'] = '0' e['GOOS'] = for_platform[0]