How to Test Local Changes with Go Mod

  • A github.com/acme/bar module
  • Another github.com/acme/foo module that depends on the first one
go mod edit -replace github.com/acme/bar=/path/to/local/bar
Follow me on Twitter @teivah

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Teiva Harsanyi

Teiva Harsanyi

3.5K Followers

Software Engineer @Docker 🐳 | 📖 100 Go Mistakes author | 改善