os: TestUserConfigDir and TestUserCacheDir expect writable $HOME on linux #64990
Labels
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
Go version
go version go1.22rc1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Building Go 1.22 on Debian build system.
What did you see happen?
https://buildd.debian.org/status/fetch.php?pkg=golang-1.22&arch=arm64&ver=1.22%7Erc1-1&stamp=1704505334&raw=0
What did you expect to see?
Build successfully without distro patch.
While reading #57630 and #57638, @bcmills said
However UserConfigDir and UserCacheDir don't report such error, and only the tests expect the returned paths are writable.
The Debian build system is intentionally configured to have a non-writable $HOME dir. Previously the Debian package carries a patch to skip TestUserHomeDir which failed if $HOME is not writable. However this is fixed in bb4ea80. But for the new added TestUserConfigDir and TestUserCacheDir, they fail again.
The text was updated successfully, but these errors were encountered: