Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/lsp/filecache: use TempDir if UserCacheDir fails us
On the builders, HOME=/ which causes UserCacheDir to be non-writable. This change attempts to MkdirAll the UserCacheDir and, if that fails, we fail back to TempDir, which is assumed to exist and be writable. Updates golang/go#57638 Change-Id: I6eb81c59b50f90a62c103a2511425fa2f24452fa Reviewed-on: https://go-review.googlesource.com/c/tools/+/460917 Reviewed-by: Bryan Mills <[email protected]> gopls-CI: kokoro <[email protected]> Run-TryBot: Alan Donovan <[email protected]> Reviewed-by: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information