Skip to content
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

net: tests fail when building within a docker container (tip) #13307

Closed
karalabe opened this issue Nov 18, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@karalabe
Copy link
Contributor

commented Nov 18, 2015

Not sure if this is a known, temporary or unknown issue, so I thought I'd report it.

I've tried to build Go (master) fully within a docker container, using 1.4.3 as the bootstrapper, but the ./all.bash fails on the net package with the following errors:

--- FAIL: TestReadLine (0.00s)
    parse_test.go:24: open /etc/services: no such file or directory
--- FAIL: TestLookupPort (0.00s)
    port_test.go:60: LookupPort("tcp", "echo") = 0, unknown port tcp/echo; want 7
    port_test.go:60: LookupPort("tcp", "discard") = 0, unknown port tcp/discard; want 9
    port_test.go:60: LookupPort("tcp", "systat") = 0, unknown port tcp/systat; want 11
    port_test.go:60: LookupPort("tcp", "daytime") = 0, unknown port tcp/daytime; want 13
    port_test.go:60: LookupPort("tcp", "chargen") = 0, unknown port tcp/chargen; want 19
    port_test.go:60: LookupPort("tcp", "ftp-data") = 0, unknown port tcp/ftp-data; want 20
    port_test.go:60: LookupPort("tcp", "ftp") = 0, unknown port tcp/ftp; want 21
    port_test.go:60: LookupPort("tcp", "telnet") = 0, unknown port tcp/telnet; want 23
    port_test.go:60: LookupPort("tcp", "smtp") = 0, unknown port tcp/smtp; want 25
    port_test.go:60: LookupPort("tcp", "time") = 0, unknown port tcp/time; want 37
    port_test.go:60: LookupPort("tcp", "domain") = 0, unknown port tcp/domain; want 53
    port_test.go:60: LookupPort("tcp", "finger") = 0, unknown port tcp/finger; want 79
    port_test.go:60: LookupPort("udp", "echo") = 0, unknown port udp/echo; want 7
    port_test.go:60: LookupPort("udp", "tftp") = 0, unknown port udp/tftp; want 69
    port_test.go:60: LookupPort("udp", "bootpc") = 0, unknown port udp/bootpc; want 68
    port_test.go:60: LookupPort("udp", "bootps") = 0, unknown port udp/bootps; want 67
    port_test.go:60: LookupPort("udp", "domain") = 0, unknown port udp/domain; want 53
    port_test.go:60: LookupPort("udp", "ntp") = 0, unknown port udp/ntp; want 123
    port_test.go:60: LookupPort("udp", "snmp") = 0, unknown port udp/snmp; want 161
    port_test.go:60: LookupPort("udp", "syslog") = 0, unknown port udp/syslog; want 514
FAIL
FAIL    net 2.097s
@karalabe

This comment has been minimized.

Copy link
Contributor Author

commented Nov 18, 2015

Ok, seems that the stock Ubuntu docker image doesn't contain the netbase package which contains the /etc/services/ file. Although I would expect Go not to choke on it, it is emphasized in the docs that LookupPort is OS specific, so I can accept this not being a Go issue. Closing.

@karalabe karalabe closed this Nov 18, 2015

@golang golang locked and limited conversation to collaborators Nov 17, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.