Duktape is a thin, embeddable javascript engine.
The original implementation of duktape requires CGO_ENABLED=1
.
This stub exists as a drop-in replacement for the original implementation - so you can continue to build/use your projects without CGO_ENABLED=1
.
go get github.com/zees-dev/duktape-stub@v1.0.0
Use the following replace directive in your projects go.mod
:
// go.mod
require(
...
)
replace gopkg.in/olebedev/go-duktape.v3 => github.com/zees-dev/duktape-stub v1.0.0
https://gitlab.com/vocdoni/go-dvote/-/tree/v0.6.2/duktape-stub
Use-case: ethereum/go-ethereum#20590 (comment).