github.com/jmigpin/editor@v1.6.0/core/godebug/testdata/basic_gomod2_TODO.txt (about) 1 # TODO: unable reproduce the issue (failing to find gomod) 2 # TODO: related with filestoannotate.gomodfilename() 3 4 #exec go run main.go 5 cd dir1 6 #fail ucmd godebugtester run -work myfile.go -aa 7 exec go mod tidy 8 ucmd godebugtester run myfile.go -aa bb 9 10 -- dir1/go.mod -- 11 module user1/mod1 12 go 1.17 13 require user2/mod2 v0.0.0 14 replace user2/mod2 => ../dir2 15 -- dir1/myfile.go -- 16 package main 17 import "user2/mod2/pkg2" 18 func main(){ 19 println(pkg2.Fa()) 20 } 21 -- dir2/go.mod -- 22 module user2/mod2 23 -- dir2/pkg2/f2.go -- 24 package pkg2 25 func Fa()string{ 26 return "fa" 27 }