santhosh-tekuri / jsonschema

JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation using Go
Apache License 2.0
957 stars 98 forks source link

The latest release doesn't build #176

Closed ksharma-qc closed 4 months ago

ksharma-qc commented 4 months ago
 > [builder 3/5] RUN go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest:
1.016 go: downloading github.com/santhosh-tekuri/jsonschema/cmd/jv v0.7.0
1.041 go: downloading github.com/santhosh-tekuri/jsonschema v1.2.4
1.164 go: github.com/santhosh-tekuri/jsonschema/cmd/jv@latest (in github.com/santhosh-tekuri/jsonschema/cmd/jv@v0.7.0): go.mod:3: invalid go version '1.21.1': must match format 1.23
santhosh-tekuri commented 4 months ago

it works for me

$ go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest
go: downloading github.com/santhosh-tekuri/jsonschema v1.2.4
go: downloading github.com/santhosh-tekuri/jsonschema/cmd/jv v0.7.0
go: downloading github.com/santhosh-tekuri/jsonschema/v6 v6.0.1
go: downloading github.com/spf13/pflag v1.0.5
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading golang.org/x/text v0.14.0
$ go version
go version go1.21.1 darwin/arm64

I am using go1.21.1. may be you are using older version which is causing this error

ksharma-qc commented 4 months ago

You're correct. I was using the default present in Ubuntu 22 LTS, which is older.