pgtype icon indicating copy to clipboard operation
pgtype copied to clipboard

Avoid transitive github.com/lib/pq dependency

Open hochhaus opened this issue 4 years ago • 2 comments
trafficstars

Currently, users of pgtype pick up a transitive dependency on github.com/lib/pq. Would it be possible to relocate testutil to avoid this dependency?

hochhaus avatar Mar 15 '21 16:03 hochhaus

It's only used by the tests. It shouldn't actually include github.com/lib/pq in your compiled programs.

jackc avatar Mar 15 '21 21:03 jackc

Thanks @jackc. Yeah, it is not included in the compiled programs. It is added as an indirect dependency in go.mod which ideally would be avoided.

hochhaus avatar Mar 15 '21 23:03 hochhaus