stretchr / testify

A toolkit with common assertions and mocks that plays nicely with the standard library
MIT License
22.51k stars 1.56k forks source link

Importing testify/assert (or anything) does not work with Go Modules #826

Open PMcca opened 4 years ago

PMcca commented 4 years ago

I'm running Go 1.13 using modules but testify/assert is failing to import. I copy/pasted the example code into a test file and go fmt simply removes the package name. At times it will say v1.4.0 is not correct or something. Other packages work fine, testify seems to be the only one I can't get to work.

boyan-soubachov commented 4 years ago

Could you provide us with example code that causes this behaviour as well as any CLI/console commands you use?