Open slsyy opened 4 months ago
Hey @slsyy,
I always wanted to solve this problem, but never knew how exactly, and didn't have a lot of time to try.
On other package panagers (Bundler for Ruby, etc) you specify a dependency as being dev
or test
, so it is ignored on importers, but Go do not have such concept.
If you think having a separate go.mod
would work, I'm more than happy to review a pull request for it.
also: Split database supports into separate packages? #241
Maybe it would be helpful to extract all of the test to separe go.mod within the repo, so the core library is super lean
I also think it's a good approach.
I also suggested something here
https://github.com/go-testfixtures/testfixtures/issues/241#issuecomment-2466722094
Please tell me if you think it could help
Right now the
go.mod
contains a lot of dependencies from specific driver libraries. However they are not used at all in the core library, because each implementation use the standarddatabase/sql
interface.Problems with that approach:
go.opentelemetry.io/otel
is quite popular and it notoriously break the backward compatibilityMaybe it would be helpful to extract all of the test to separe
go.mod
within the repo, so the core library is super lean. @andreynering WDYT?