In our CI we can see this error:
[Container] 2019/01/07 10:50:59 Running command go get github.com/aws/aws-xray-sdk-go/...
# github.com/aws/aws-xray-sdk-go/strategy/exception
/go/src/github.com/aws/aws-xray-sdk-go/strategy/exception/default_exception_formatting_strategy.go:148:25: cannot convert frame (type "github.com/pkg/errors".Frame) to type uintptr
Running the same command inside official Go container for versions
~/go/src/github.com/cosaquee/xray-demo(master ✗) docker run -it --rm golang:1.11
Unable to find image 'golang:1.11' locally
1.11: Pulling from library/golang
cd8eada9c7bb: Already exists
c2677faec825: Already exists
fcce419a96b1: Already exists
045b51e26e75: Already exists
70a7003e9fe9: Already exists
751b6f060321: Pull complete
462a907acb44: Pull complete
Digest: sha256:4f1cd313c3d59faa0ca93910f9d853bd74be7afbf6f6997aee06924415ec7dc9
Status: Downloaded newer image for golang:1.11
root@c2fdab63256d:/go# go get -u github.com/aws/aws-xray-sdk-go/...
# github.com/aws/aws-xray-sdk-go/strategy/exception
src/github.com/aws/aws-xray-sdk-go/strategy/exception/default_exception_formatting_strategy.go:148:25: cannot convert frame (type "github.com/pkg/errors".Frame) to type uintptr
root@c2fdab63256d:/go#
/go/src/github.com/cosaquee/xray-demo(master ✗) docker run -it --rm golang:1.10
Unable to find image 'golang:1.10' locally
1.10: Pulling from library/golang
cd8eada9c7bb: Already exists
c2677faec825: Pull complete
fcce419a96b1: Pull complete
045b51e26e75: Pull complete
70a7003e9fe9: Pull complete
057d7cdb2121: Pull complete
a44377be7095: Pull complete
Digest: sha256:6d006a643599f44b08b0d692102bbb35e12dbd968c68cf0d6c10da9afda9d98d
Status: Downloaded newer image for golang:1.10
root@fc8f80227176:/go# go get -u github.com/aws/aws-xray-sdk-go/...
# github.com/aws/aws-xray-sdk-go/strategy/exception
src/github.com/aws/aws-xray-sdk-go/strategy/exception/default_exception_formatting_strategy.go:148:25: cannot convert frame (type "github.com/pkg/errors".Frame) to type uintptr
We are not using Glide for dependencies management so we are running plain go get commands to download all the packages. As we can see there is an error when downloading this package.
// We also accept github.com/pkg/errors style stack traces for ease of use
if err, ok := err.(interface {
StackTrace() errors.StackTrace
}); ok {
for _, frame := range err.StackTrace() {
s = append(s, uintptr(frame))
}
}
The current master of https://github.com/pkg/errors is breaking the code above. This commit has changed type of frame from uintptr to runtime.Frame.
The master is currently broken on Travis also, but I'm not sure if it is related to this issue.
I'm not sure how to handle this situation without rebuilding aws-xray-sdk-go with the pkg/errors version https://github.com/pkg/errors/releases/tag/v0.8.1
In our CI we can see this error:
Running the same command inside official Go container for versions
We are not using Glide for dependencies management so we are running plain
go getcommands to download all the packages. As we can see there is an error when downloading this package.The current master of https://github.com/pkg/errors is breaking the code above. This commit has changed type of frame from
uintptrtoruntime.Frame.The master is currently broken on Travis also, but I'm not sure if it is related to this issue.
I'm not sure how to handle this situation without rebuilding
aws-xray-sdk-gowith thepkg/errorsversion https://github.com/pkg/errors/releases/tag/v0.8.1