mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Rename gengo Target.SourcePath() -> Dir()
This commit is contained in:
parent
fcd6c19c24
commit
2ac119bea9
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user