Explorar o código

Remove XDG reference for now (#1030)

Jon Meow %!s(int64=4) %!d(string=hai) anos
pai
achega
81f28687cc
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      scripts/fix_cc_deps.py

+ 1 - 5
scripts/fix_cc_deps.py

@@ -55,11 +55,7 @@ def install_buildozer() -> str:
     ]
     ]
     # Install to a cache.
     # Install to a cache.
     env = os.environ.copy()
     env = os.environ.copy()
-    if "XDG_CACHE_HOME" in env:
-        cache_dir = Path(env["XDG_CACHE_HOME"])
-    else:
-        cache_dir = Path(tempfile.gettempdir())
-    cache_dir = cache_dir.joinpath("carbon-pre-commit-cache")
+    cache_dir = Path(tempfile.gettempdir()).joinpath("carbon-pre-commit-cache")
     cache_dir.mkdir(parents=True, exist_ok=True)
     cache_dir.mkdir(parents=True, exist_ok=True)
     env["GOPATH"] = str(cache_dir)
     env["GOPATH"] = str(cache_dir)
     if "GOBIN" in env:
     if "GOBIN" in env: