github.com/sirkon/goproxy@v1.4.8/plugin/vcs/init.go (about) 1 package vcs 2 3 import ( 4 "path/filepath" 5 6 "github.com/sirkon/goproxy/internal/cfg" 7 "github.com/sirkon/goproxy/internal/modfetch" 8 "github.com/sirkon/goproxy/internal/modfetch/codehost" 9 ) 10 11 func setupEnv(basedir string) { 12 modfetch.QuietLookup = true // just to hide modfetch/cache.go#127 13 modfetch.PkgMod = filepath.Join(basedir, "pkg", "mod") 14 codehost.WorkRoot = filepath.Join(modfetch.PkgMod, "cache", "vcs") 15 cfg.CmdName = "mod download" // just to hide modfetch/fetch.go#L87 16 }