getsentry / raven-go

Sentry client in Go
https://sentry.io
BSD 3-Clause "New" or "Revised" License
561 stars 148 forks source link

Add support for Go Modules #236

Open kamilogorek opened 5 years ago

kamilogorek commented 5 years ago

I couldn't find any reliable way to extract current package name, as in here: https://github.com/getsentry/raven-go/blob/238ebd86338d2e91cb5c84663d695877dd5d0ff4/stacktrace_test.go#L109-L135 due to Go Modules not using GOPATH anymore. Need more investigation.

Some sources: https://github.com/golang/go/wiki/Modules#migrating-to-modules https://research.swtch.com/vgo-module

tankbusta commented 5 years ago

Is this issue why I'm seeing the raven package in the error title? (We're using modules)

theerror

kamilogorek commented 5 years ago

I don't think so, I was able to successfully read the module name using modules as well.

Do you have any repro of this behaviour?