Skip to content

Commit

Permalink
never found .proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
skelterjohn committed Jan 6, 2012
1 parent ff3fd8a commit 7a0fc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gb/pkg.go
Expand Up @@ -357,7 +357,7 @@ func (this *Package) VisitFile(fpath string, f os.FileInfo) {
//only get these from .proto files, if the .proto file exists
if strings.HasSuffix(fpath, ".pb.go") {
dotProto := fpath[:len(fpath)-len(".pb.go")] + ".proto"
absProto := filepath.Join(this.Dir, dotProto)
absProto := filepath.Join(this.Dir, filepath.Base(dotProto))
if _, err := os.Stat(absProto); err == nil {
//if there is a .proto file, the .pb.go is an intermediate object
return
Expand Down

0 comments on commit 7a0fc46

Please sign in to comment.