Rename gengo Target.SourcePath() -> Dir()

This commit is contained in:
Tim Hockin 2024-01-15 16:52:07 -08:00
parent fcd6c19c24
commit 2ac119bea9
No known key found for this signature in database

View File

@ -81,7 +81,7 @@ type protobufPackage struct {
func (p *protobufPackage) Clean() error {
for _, s := range []string{p.ImportPath(), p.OutputPath()} {
if err := os.Remove(filepath.Join(p.SourcePath(), filepath.Base(s))); err != nil && !os.IsNotExist(err) {
if err := os.Remove(filepath.Join(p.Dir(), filepath.Base(s))); err != nil && !os.IsNotExist(err) {
return err
}
}