encode module name with gomod vcs provider to handle uppercase module paths

This commit is contained in:
Serge Zaitsev 2019-11-08 10:08:36 +01:00
parent 7a37ec05c4
commit db43a4e741

View File

@ -82,6 +82,6 @@ func (g *goVCS) download(ctx context.Context, version string) error {
} }
func (g *goVCS) file(name string) ([]byte, error) { func (g *goVCS) file(name string) ([]byte, error) {
path := filepath.Join(g.dir, "pkg", "mod", "cache", "download", g.module, "@v", name) path := filepath.Join(g.dir, "pkg", "mod", "cache", "download", encodeBangs(g.module), "@v", name)
return ioutil.ReadFile(path) return ioutil.ReadFile(path)
} }