Module example.com/incompatiblewithsub has an incompatible version and a package in a subdirectory. -- .info -- {"Version":"v2.0.0+incompatible"} -- .mod -- module example.com/incompatiblewithsub -- sub/sub.go -- package sub