lilyball / go-osx-plist

CoreFoundation Property List support for Go
Other
29 stars 2 forks source link

go v1.10 #3

Open CGuidi opened 6 years ago

CGuidi commented 6 years ago

When cloned with go v1.10, the library throw some errors :

github.com/kballard/go-osx-plist/convert.go:20: cannot convert nil to type cfTypeRef
github.com/kballard/go-osx-plist/convert.go:27: cannot use nil as type cfTypeRef in return argument
github.com/kballard/go-osx-plist/convert.go:44: cannot use nil as type cfTypeRef in return argument
github.com/kballard/go-osx-plist/convert.go:49: cannot convert nil to type _Ctype_CFStringRef
github.com/kballard/go-osx-plist/convert.go:50: cannot use nil as type cfTypeRef in return argument
github.com/kballard/go-osx-plist/convert.go:70: cannot use nil as type cfTypeRef in return argument
github.com/kballard/go-osx-plist/convert.go:74: cannot use nil as type cfTypeRef in return argument
github.com/kballard/go-osx-plist/convert.go:358: cannot use nil as type _Ctype_CFArrayRef in return argument
github.com/kballard/go-osx-plist/convert.go:365: cannot convert &plists[0] (type *cfTypeRef) to type *unsafe.Pointer
github.com/kballard/go-osx-plist/convert.go:394: cannot convert &cfTypes[0] (type *cfTypeRef) to type *unsafe.Pointer
github.com/kballard/go-osx-plist/convert.go:394: too many errors

FIX The solution was to downgrade go to the v1.8.3 (just download and install said version)

lilyball commented 5 years ago

As you can probably tell from the commit history on this project, I haven't used Go in years. If anyone wants to submit a PR for this I'll consider merging it.