Преглед изворни кода

codecgen: remove notfastpath from runtime tags for codecgen

Adding notfastpath to the runtime tags will cause the fastpath
methods to not be found. codecgen expects them to be available.

Fix by removing notfastpath from the tags.

Fixes #111
Ugorji Nwoke пре 10 година
родитељ
комит
9d93fad923
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      codec/codecgen/gen.go

+ 1 - 1
codec/codecgen/gen.go

@@ -220,7 +220,7 @@ func Generate(outfile, buildTag, codecPkgPath string, uid int64, useUnsafe bool,
 	os.Remove(outfile)
 
 	// execute go run frun
-	cmd := exec.Command("go", "run", "-tags=notfastpath "+goRunTag, frunMainName) //, frunPkg.Name())
+	cmd := exec.Command("go", "run", "-tags="+goRunTag, frunMainName) //, frunPkg.Name())
 	var buf bytes.Buffer
 	cmd.Stdout = &buf
 	cmd.Stderr = &buf