<pre class="notranslate">For example, 

--- PASS: TestConnectionlessWriteTooLongError (0.00 seconds)
    write_test.go:89: 65536 bytes write udp4: message too long
    write_test.go:110: 65536 bytes write udp4: message too long
    write_test.go:89: 65536 bytes write udp6: message too long
    write_test.go:110: 65536 bytes write udp6: message too long
    write_test.go:89: 1048576 bytes write unixgram: message too long
    write_test.go:110: 1048576 bytes write unixgram: message too long

instead of

--- PASS: TestConnectionlessWriteTooLongError (0.00 seconds)
    write_test.go:89: 65536 bytes write udp4 127.0.0.1:33494: message too long
    write_test.go:110: 65536 bytes write udp4 127.0.0.1:33494: message too long
    write_test.go:89: 65536 bytes write udp6 [::1]:42353: message too long
    write_test.go:110: 65536 bytes write udp6 [::1]:42353: message too long
    write_test.go:89: 1048576 bytes write unixgram /tmp/nettest925274809:: message too long
    write_test.go:110: 1048576 bytes write unixgram /tmp/nettest925274809:: message too long

The root cause is <a href="https://golang.org/issue/4856" rel="nofollow">issue #4856</a>.</pre>
<p dir="auto">by <strong>dean.w.schulze</strong>:</p>
<pre class="notranslate">1.  Create a package and a test for the package in a deep directory structure (for me
this happens with 127 character path)
2.  Run "go test" in that directory from the DOS prompt

What is the expected output?
Success or failure from the go test

What do you see instead?
An error from DOS indicating that the temporary directory structure is too deep.

Which compiler are you using (5g, 6g, 8g, gccgo)?


Which operating system are you using?
Windows 7 Pro 64-bit

Which version are you using?  (run 'go version')
go version go1.1.2 windows/amd64

Please provide any additional information below.

Here is my command line and the output:

c:\dean\courses\algorithms-stanford\design.and.analysis.of.algorithms.1\programm
ing-questions\common\code\golang\src\algoutils&gt;go test
# _/c_/dean/courses/algorithms-stanford/design.and.analysis.of.algorithms.1/prog
ramming-questions/common/code/golang/src/algoutils
mkdir C:\Users\dean\AppData\Local\Temp\go-build651070751\_\c_\dean\courses\algor
ithms-stanford\design.and.analysis.of.algorithms.1\programming-questions\common\
code\golang\src\algoutils\_test\_\c_\dean\courses\algorithms-stanford\design.and
.analysis.of.algorithms.1: The filename or extension is too long.


The Windows API has a problem with path names longer than 255 characters, unless the
path starts with "\\?\"

<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath</a></pre>