From 8b5a52c89f8a9f0529c64cb544276a533218667a Mon Sep 17 00:00:00 2001 From: bdumpp Date: Fri, 13 Feb 2026 10:27:13 +0100 Subject: [PATCH 1/3] omit empty items in ocp sources Signed-off-by: bdumpp --- pkg/ocp/sources.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/ocp/sources.go b/pkg/ocp/sources.go index 15296c4e..351cfcdc 100644 --- a/pkg/ocp/sources.go +++ b/pkg/ocp/sources.go @@ -78,9 +78,9 @@ type SourceConfig struct { // GitConfig represents the git source control configuration for a source. type GitConfig struct { Repo string `json:"repo"` - Reference string `json:"reference"` + Reference string `json:"reference,omitempty"` Commit string `json:"commit,omitempty"` - Path string `json:"path"` + Path string `json:"path,omitempty"` IncludedFiles []string `json:"included_files,omitempty"` ExcludedFiles []string `json:"excluded_files,omitempty"` CredentialID string `json:"credentials,omitempty"` @@ -89,7 +89,7 @@ type GitConfig struct { // Datasource represents a datasource for a source. type Datasource struct { Name string `json:"name" yaml:"name"` - Path string `json:"path" yaml:"path"` + Path string `json:"path,omitempty" yaml:"path,omitempty"` Type string `json:"type" yaml:"type"` TransformQuery string `json:"transform_query,omitempty" yaml:"transform_query,omitempty"` Config map[string]interface{} `json:"config,omitempty" yaml:"config,omitempty"` From 895e3e5a1f3b0b0f6ac27daa4e41055d5bf00c66 Mon Sep 17 00:00:00 2001 From: bdumpp Date: Fri, 13 Feb 2026 11:02:21 +0100 Subject: [PATCH 2/3] bump go version in pipeline since its not working Signed-off-by: bdumpp --- .github/workflows/pr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index d216d469..43dbe9ee 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: '>=1.21.3' + go-version: '>=1.25.0' - name: build run: make build testing: @@ -49,7 +49,7 @@ jobs: key: ${{ runner.os }}-binaries-${{ hashFiles('**/go.sum') }} - uses: actions/setup-go@v4 with: - go-version: '>=1.21.3' + go-version: '>=1.25.0' - name: run tests run: make test From fe50c82c9578ec7074327b38f9675be45be4efab Mon Sep 17 00:00:00 2001 From: bdumpp Date: Fri, 13 Feb 2026 11:11:16 +0100 Subject: [PATCH 3/3] Go mod tidy Signed-off-by: bdumpp --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 5bf8e051..62a4bc3d 100644 --- a/go.mod +++ b/go.mod @@ -10,8 +10,8 @@ require ( github.com/google/uuid v1.6.0 github.com/goreleaser/goreleaser v1.26.2 github.com/minio/madmin-go/v3 v3.0.110 - github.com/onsi/ginkgo/v2 v2.27.5 github.com/minio/minio-go/v7 v7.0.98 + github.com/onsi/ginkgo/v2 v2.27.5 github.com/onsi/gomega v1.39.0 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/pkg/errors v0.9.1