Short description
text/template usage is causing DCE (dead code elimination) to be disabled for opa and any application depending on it.
Use of text/template outside of tests should be avoided or replaced with another templating library
imports:
Steps To Reproduce
- build opa or add a dependency on the opa go package
- observe large binary with DCE disabled
Expected behavior
Small binaries with DCE enabled
Additional context
See golang/go#72895
Short description
text/templateusage is causing DCE (dead code elimination) to be disabled for opa and any application depending on it.Use of text/template outside of tests should be avoided or replaced with another templating library
imports:
opa/v1/topdown/template.go
Line 5 in b86ad9f
opa/internal/gojsonschema/errors.go
Line 7 in b86ad9f
opa/internal/gojsonschema/schema.go
Line 34 in b86ad9f
Steps To Reproduce
Expected behavior
Small binaries with DCE enabled
Additional context
See golang/go#72895