When importing 2 different packages in 2 related files and those imported packages have the same name in go.mod then the import resolution doesn't work and it imports the wrong package. This happens only when the imported symbol is defined in both packages.