wellington / go-libsass

Go wrapper for libsass, the only Sass 3.5 compiler for Go
http://godoc.org/github.com/wellington/go-libsass
Apache License 2.0
205 stars 28 forks source link

Fix build with Go 1.20 #83

Closed QuLogic closed 1 year ago

QuLogic commented 1 year ago

The union Sass_Value is only forward declared in Sass headers, and no full definition is provided publicly. Go 1.20 now complains about instantiating incomplete types such as these:

libs/encoding.go:16:9: cgo.Incomplete can't be allocated in Go; it is incomplete (or unallocatable)
libs/encoding.go:247:26: cgo.Incomplete can't be allocated in Go; it is incomplete (or unallocatable)

Instead, create a NULL Sass_Value.