qulogic added a new comment to an issue you are following: `` The backtraces point to line 1888 here: ```go 1886 func ImportPaths(args []string) []*search.Match { 1887 if ModInit(); cfg.ModulesEnabled { 1888> return ModImportPaths(args) 1889 } 1890 return search.ImportPaths(args) 1891 } ``` Both `cfg.ModulesEnabled` and `ModImportPaths` are semi-global variables that are set to something in the `ModInit` call in `internal/modload/init.go`: ``` 170 cfg.ModulesEnabled = true 171 load.ModBinDir = BinDir 172 load.ModLookup = Lookup 173 load.ModPackageModuleInfo = PackageModuleInfo 174 load.ModImportPaths = ImportPaths 175 load.ModPackageBuildInfo = PackageBuildInfo 176 load.ModInfoProg = ModInfoProg 177 load.ModImportFromFiles = ImportFromFiles 178 load.ModDirImportPath = DirImportPath 179 180 search.SetModRoot(ModRoot) 181 } ```
I took a look in delve, and something seems up with the variables:
* Great, only one copy: ``` (dlv) vars ModulesEnabled cmd/go/internal/cfg.ModulesEnabled = true ``` * Multiple versions, but at least they're in sync: ``` (dlv) vars ModInit pagure.io/golist/pkg/util/internal/load.ModInit = pagure.io/golist/pkg/util/internal/modload.Init cmd/go/internal/load.ModInit = pagure.io/golist/pkg/util/internal/modload.Init ``` * Multiple versions, but not in sync: ``` (dlv) vars ModImportPaths pagure.io/golist/pkg/util/internal/load.ModImportPaths = nil cmd/go/internal/load.ModImportPaths = pagure.io/golist/pkg/util/internal/modload.ImportPaths ```
I don't exactly know why this occurs, but finding the root of this would obviously fix the problem. ``
To reply, visit the link below or just reply to this email https://pagure.io/golist/issue/7