-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls/internal/lsp/filecache: failures on android
with read-only file system
as of CL 443099
#57630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
(CC @golang/android) I'm not sure how it's ending up trying to create (Maybe |
I agree with your analysis., and this testdata file is evidence that HOME is indeed (or once was) set to /. But I would argue that setting HOME to / without setting XDG_CACHE_HOME is a misconfiguration since it will cause os.UserCacheDir() to fail always. Or are applications supposed to substitute /tmp/whatever when UserCacheDir fails? That would seem to violate the spirit of "[Applications] should create their own application-specific subdirectory within [UserCacheDir] and use that." |
I don't see any tests at all that exercise (https://cs.opensource.google/search?q=UserCacheDir&ss=go%2Fgo) |
Indeed, it seems that |
In that case it should probably attempt to create the cache directory. |
error UserCacheDir skipped and empty string cache dir got fatal. for test write permission in cache dir add mkdir temp. Fixes golang#57638 golang#57630
@adonovan is there anything to do here, following https://go.dev/cl/460917? Can we close? |
https://build.golang.org/log/5b087fd350cb4eca1112dd3b79f8b74c1a2ef301:
The text was updated successfully, but these errors were encountered: