mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
relative paths fix
This commit is contained in:
@@ -169,7 +169,7 @@ func (g *Generator) Run() error {
|
||||
defer os.Remove(f.Name()) // will not remove after rename
|
||||
}
|
||||
|
||||
cmd := exec.Command("go", "run", "-tags", g.BuildTags, path)
|
||||
cmd := exec.Command("go", "run", "-tags", g.BuildTags, filepath.Base(path))
|
||||
cmd.Stdout = f
|
||||
cmd.Stderr = os.Stderr
|
||||
cmd.Dir = filepath.Dir(path)
|
||||
|
||||
Reference in New Issue
Block a user