kad
kad copied to clipboard
Can't seem to build
Not comfortable with go at all but on linux I see:
~/.../kad/test on master$ go test
# github.com/swill/kad
../kad.go:435:9: canvas.FloatDecimals undefined (type *svg.SVG has no field or method FloatDecimals)
../kad.go:436:9: canvas.StartviewUnitF undefined (type *svg.SVG has no field or method StartviewUnitF)
../kad.go:444:12: canvas.PolygonF undefined (type *svg.SVG has no field or method PolygonF)
FAIL github.com/swill/kad/test [build failed]
Also I am not sure where to report it but the online tool is down.
The steps described in #4 didn't work for me when creating a new package that depends on kad. What worked for me instead was adding to my package's go.mod
file:
replace github.com/swill/svgo => github.com/swill/svgo float
and then running go install
, which ended up rewriting that line to:
replace github.com/swill/svgo => github.com/swill/svgo v0.0.0-20150715025413-bc384fa1e849
Disclaimer: I have no idea what I'm doing with Go. There's probably a better way to do that.
@joelspadin 's comment worked for me.