Go.mod and build tags

Hi,

I use build tags to swap implementation of certain transport between one that’s publicly available and one that’s internally developed. If I put the dependency for internally developed transport into go.mod - build fails outside of internal environment (travis-ci, etc). if i don’t put the dependency - build fails internally.

what’s the idiomatic way to solve this problem? is there a way to teach go.mod about build tags?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.