json icon indicating copy to clipboard operation
json copied to clipboard

Error after ugpgrade to v1.17.1

Open avrekhm opened this issue 4 years ago • 4 comments

Hi! After the recent upgrade to v1.17.1, builds are failing with this error:

encode.go:1260:12: sf.IsExported undefined (type reflect.StructField has no field or method IsExported)

Confirmed with go1.14.15 and go1.16.5.

avrekhm avatar Oct 08 '21 19:10 avrekhm

You will need GO > 1.17 for this to work from now on. The reflect package has been updated to include this new function, so the mod file in this repo should probably be updated to reflect (pun intended) this.

JonasAlfredsson avatar Nov 05 '21 10:11 JonasAlfredsson

I had to go back to

go get github.com/clarketm/[email protected]

for it to work for me with GO 1.16.4

JonasAlfredsson avatar Nov 05 '21 10:11 JonasAlfredsson

This should be documented in the go.mod

Splizard avatar Dec 09 '21 01:12 Splizard

https://github.com/clarketm/json/pull/6

Splizard avatar Dec 09 '21 01:12 Splizard