net: TestReadLine fails on OpenSuse Linux #65905
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
Go version
go version go1.22.0 linux/amd64
Output of
go env
in your module/workspace:Note:
go env
from 1.21 as I couldn't compile 1.22.What did you do?
OS details:
2 Shell commands:
What did you see happen?
OpenSuse linux does not provide the
/etc/services
file.What did you expect to see?
Go to compile, test and install correctly.
https://github.com/golang/go/blob/ad377e906a8ee6f27545d83de280206dacec1e58/src/net/parse_test.go#L15C2-L21C48
If the test needs to read a line from a file, why not just generate a temp file instead of relying on a distribution specific file?
The text was updated successfully, but these errors were encountered: