newrelic / go-agent

New Relic Go Agent
Apache License 2.0
775 stars 295 forks source link

Incompatible with Go 1.23 due to extraneous version constraint #939

Closed rittneje closed 3 months ago

rittneje commented 3 months ago

When attempting to compile our code with the 1.23 release candidate, we received the following error:

github.com/newrelic/go-agent/v3/newrelic/sql_driver.go:47:37: predeclared any requires go1.18 or later (file declares //go:build go1.10)

I am unsure whether this is a bug in 1.23 or the intended behavior. Regardless, that version constraint can be removed, given that the README already says that Go 1.18+ is required.

iamemilio commented 3 months ago

Thanks for fixing this!