@@ -792,7 +792,7 @@ func (r *codeRepo) findDir(version string) (rev, dir string, gomod []byte, err e
792
792
file1 := path .Join (r .codeDir , "go.mod" )
793
793
gomod1 , err1 := r .code .ReadFile (rev , file1 , codehost .MaxGoMod )
794
794
if err1 != nil && ! os .IsNotExist (err1 ) {
795
- return "" , "" , nil , fmt .Errorf ("reading %s/%s at revision %s: %v" , r .pathPrefix , file1 , rev , err1 )
795
+ return "" , "" , nil , fmt .Errorf ("reading %s/%s at revision %s: %v" , r .codeRoot , file1 , rev , err1 )
796
796
}
797
797
mpath1 := modfile .ModulePath (gomod1 )
798
798
found1 := err1 == nil && (isMajor (mpath1 , r .pathMajor ) || r .canReplaceMismatchedVersionDueToBug (mpath1 ))
@@ -810,7 +810,7 @@ func (r *codeRepo) findDir(version string) (rev, dir string, gomod []byte, err e
810
810
file2 = path .Join (dir2 , "go.mod" )
811
811
gomod2 , err2 := r .code .ReadFile (rev , file2 , codehost .MaxGoMod )
812
812
if err2 != nil && ! os .IsNotExist (err2 ) {
813
- return "" , "" , nil , fmt .Errorf ("reading %s/%s at revision %s: %v" , r .pathPrefix , file2 , rev , err2 )
813
+ return "" , "" , nil , fmt .Errorf ("reading %s/%s at revision %s: %v" , r .codeRoot , file2 , rev , err2 )
814
814
}
815
815
mpath2 := modfile .ModulePath (gomod2 )
816
816
found2 := err2 == nil && isMajor (mpath2 , r .pathMajor )
@@ -823,9 +823,9 @@ func (r *codeRepo) findDir(version string) (rev, dir string, gomod []byte, err e
823
823
}
824
824
if err2 == nil {
825
825
if mpath2 == "" {
826
- return "" , "" , nil , fmt .Errorf ("%s/%s is missing module path at revision %s" , r .pathPrefix , file2 , rev )
826
+ return "" , "" , nil , fmt .Errorf ("%s/%s is missing module path at revision %s" , r .codeRoot , file2 , rev )
827
827
}
828
- return "" , "" , nil , fmt .Errorf ("%s/%s has non-...%s module path %q at revision %s" , r .pathPrefix , file2 , r .pathMajor , mpath2 , rev )
828
+ return "" , "" , nil , fmt .Errorf ("%s/%s has non-...%s module path %q at revision %s" , r .codeRoot , file2 , r .pathMajor , mpath2 , rev )
829
829
}
830
830
}
831
831
0 commit comments