mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Merge pull request #381 from niallnsec/master
Copy byte array when unmarshalling RawMessage
This commit is contained in:
@@ -187,7 +187,10 @@ func (g *Generator) Run() error {
|
||||
buildFlags := buildFlagsRegexp.FindAllString(g.GenBuildFlags, -1)
|
||||
execArgs = append(execArgs, buildFlags...)
|
||||
}
|
||||
execArgs = append(execArgs, "-tags", g.BuildTags, filepath.Base(path))
|
||||
if len(g.BuildTags) > 0 {
|
||||
execArgs = append(execArgs, "-tags", g.BuildTags)
|
||||
}
|
||||
execArgs = append(execArgs, filepath.Base(path))
|
||||
cmd := exec.Command("go", execArgs...)
|
||||
|
||||
cmd.Stdout = f
|
||||
|
||||
Reference in New Issue
Block a user