-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
os: TestHostname fails if docker container doesn't have /bin/hostname #16536
Comments
I don't think this issue is worth issuing another 1.6 release. This is not a bug with the test, just an artefact that your docker image doesn't have the host name command. Your go install has built successfully at this time, you can ignore the test failure.
|
I agree with @davecheney, 1.7 is about to land and I don't think this merits a 1.6 release. |
Thanks @davecheney and @quentinmit for responding, that helped. |
Please answer these questions before submitting your issue. Thanks!
go version
)?1.6 , using branch release-branch.go1.6
go env
)?Rhel 7.2
The ./all.bash command fails for me inside the docker container with the below error:
Error : --- FAIL: TestHostname (0.00s)
os_test.go:1287: fork/exec /bin/hostname: no such file or directory
All the tests should pass.
I found that the issue I am getting is exactly similar to issue Failed building 1.6 from source on docker #14693. Hence when I tried applying the patch for this particular issue in my work environment; I found that all the tests were passing.
I would like to know if we can cherry-pick the fix for issue #14693 and merge it into the branch release-branch.go1.6, (which I have done for my environment to verify if it works).
Please note that this commit is not found in the particular branch.
The text was updated successfully, but these errors were encountered: