diff --git a/.env b/.env index 69dd98182..c141fb22b 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ # version -GOLANG_VERSION=1.22.5 +GOLANG_VERSION=1.23.4 K6_VERSION=0.55.0 XK6_VERSION=0.13.3 XK6_SQL_VERSION=1.0.0 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 94f4eca7f..930448752 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -40,5 +40,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.61 + version: v1.63.4 args: --timeout=10m --build-tags onnx diff --git a/Dockerfile b/Dockerfile index c7d4e31e7..e85ccb1bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG GOLANG_VERSION=1.22.5 +ARG GOLANG_VERSION=1.23.4 FROM golang:${GOLANG_VERSION}-bullseye AS build ARG TARGETOS TARGETARCH diff --git a/Dockerfile.dev b/Dockerfile.dev index e7a2600a3..dcdc890d1 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,4 +1,4 @@ -ARG GOLANG_VERSION=1.22.5 +ARG GOLANG_VERSION=1.23.4 FROM golang:${GOLANG_VERSION}-bullseye ARG SERVICE_NAME diff --git a/go.mod b/go.mod index 2dae35a78..dbc97b893 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/instill-ai/pipeline-backend -go 1.22.5 +go 1.23.4 require ( cloud.google.com/go/bigquery v1.61.0 diff --git a/pkg/component/tools/compogen/go.mod b/pkg/component/tools/compogen/go.mod index c0b71b50c..b9f132190 100644 --- a/pkg/component/tools/compogen/go.mod +++ b/pkg/component/tools/compogen/go.mod @@ -1,6 +1,6 @@ module github.com/instill-ai/pipeline-backend/pkg/component/tools/compogen -go 1.22.5 +go 1.23.4 require ( github.com/frankban/quicktest v1.14.6 @@ -11,6 +11,7 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 github.com/spf13/cobra v1.8.0 golang.org/x/text v0.21.0 + gopkg.in/yaml.v3 v3.0.1 ) require ( @@ -109,5 +110,4 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20240722135656-d784300faade // indirect google.golang.org/grpc v1.65.0 // indirect google.golang.org/protobuf v1.34.2 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/pkg/component/tools/compogen/go.sum b/pkg/component/tools/compogen/go.sum index 085a86f49..2653d9ff2 100644 --- a/pkg/component/tools/compogen/go.sum +++ b/pkg/component/tools/compogen/go.sum @@ -694,8 +694,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1: github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/instill-ai/pipeline-backend v0.49.1-beta.0.20241224134251-c4a675c31007 h1:YrF2mMKfyiJm+itKDLEH3cDWDZjS7JAmfAdISTVlmxM= -github.com/instill-ai/pipeline-backend v0.49.1-beta.0.20241224134251-c4a675c31007/go.mod h1:blCbRLxPUsNFFGldDRTQd4/Uu7KKNP0vfAT70STlS9E= github.com/instill-ai/pipeline-backend v0.49.1-beta.0.20241225070636-1d7ceb88b650 h1:FKXLGmv3kfLsW0OEU9DjQgyezxnGzXdwixzR4fUP1H8= github.com/instill-ai/pipeline-backend v0.49.1-beta.0.20241225070636-1d7ceb88b650/go.mod h1:blCbRLxPUsNFFGldDRTQd4/Uu7KKNP0vfAT70STlS9E= github.com/instill-ai/protogen-go v0.3.3-alpha.0.20241213145904-c3d8111872b5 h1:5338ZeuB/C50P8aUOUKstjBSAQaWqmrdrAK2i9AbWk8= diff --git a/pkg/component/tools/compogen/pkg/gen/readme.go b/pkg/component/tools/compogen/pkg/gen/readme.go index dd08dfdf7..65946b981 100644 --- a/pkg/component/tools/compogen/pkg/gen/readme.go +++ b/pkg/component/tools/compogen/pkg/gen/readme.go @@ -646,6 +646,7 @@ func anchorTaskWithProperty(prop property, taskName string) string { if isSemiStructuredObject(prop) { return prop.Title } + if prop.Type == "object" || (prop.Type == "array" && prop.Items.Type == "object") || (prop.Type == "array[object]") {