| commit | dded9133a99a3cd7c3a9d24a9f85c2b8ef76ff31 | [log] [tgz] |
|---|---|---|
| author | David Symonds <dsymonds@golang.org> | Wed Apr 29 16:16:36 2015 +1000 |
| committer | David Symonds <dsymonds@golang.org> | Wed Apr 29 16:16:36 2015 +1000 |
| tree | 18b009b4d22af0c152edf63f9a19c9eb1d6636d3 | |
| parent | e228b1ac337584c4ce21b022312332ca6a5532ff [diff] |
Generate import paths in accordance with the standard Go package layout. If a .proto imports "a/b/c/foo.proto", we assume that will generate "a/b/c/foo.pb.go". Previously we would try to import that as "a/b/c/foo.pb", which makes no sense if this is a standard Go source layout, so we switch to trying to import that as "a/b/c". The `M` parameter permits overridding this anyway. Fixes #8.