kad icon indicating copy to clipboard operation
kad copied to clipboard

Can't seem to build

Open arrowplum opened this issue 5 years ago • 4 comments

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]

arrowplum avatar Dec 17 '19 06:12 arrowplum

Also I am not sure where to report it but the online tool is down.

arrowplum avatar Dec 17 '19 06:12 arrowplum

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 avatar Jan 11 '20 19:01 joelspadin

@joelspadin 's comment worked for me.

russtoku avatar May 19 '21 01:05 russtoku