Przeglądaj źródła

Remove XDG reference for now (#1030)

Jon Meow 4 lat temu
rodzic
commit
81f28687cc
1 zmienionych plików z 1 dodań i 5 usunięć
  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.
     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)
     env["GOPATH"] = str(cache_dir)
     if "GOBIN" in env: