You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current calculations assume that -trimpath is not passed to go tool
compile, which is not the case for test binaries built with bazel. This
causes issues for integration tests right now but is generally not
correct.
The approach taken here is a bit of a hack but it works on the
assumption that if and only if trimpath is passed, we are running under
bazel. I didn't see a good spot for pkgPath(), so I just copied it
around.
s.RecommendedOptions.SecureServing.ExternalAddress=s.RecommendedOptions.SecureServing.Listener.Addr().(*net.TCPAddr).IP// use listener addr although it is a loopback device
121
121
122
-
_, thisFile, _, ok:=runtime.Caller(0)
123
-
if!ok {
124
-
returnresult, fmt.Errorf("failed to get current file")
0 commit comments