From ff33dde2cc37204aed33fedf58b514fb612f4fd3 Mon Sep 17 00:00:00 2001 From: Geoffrey Date: Tue, 30 Jun 2026 20:40:15 +0000 Subject: [PATCH] go: upgrade to Go 1.26.4 and run go fix ./... --- .github/workflows/pipeline.yml | 2 +- go.mod | 2 +- jq.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 1e56638..6f9b407 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: '1.25.9' + go-version: '1.26.4' - name: Build run: go build -v ./... diff --git a/go.mod b/go.mod index 3c816fe..2ba55d2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/sourcegraph/run -go 1.25 +go 1.26.4 require ( bitbucket.org/creachadair/shell v0.0.7 diff --git a/jq.go b/jq.go index 20495fb..542e7c3 100644 --- a/jq.go +++ b/jq.go @@ -39,7 +39,7 @@ func execJQBytes(ctx context.Context, jqCoode *gojq.Code, content []byte) ([]byt // execJQ executes the compiled jq query against content from reader. func execJQ(ctx context.Context, jqCode *gojq.Code, reader io.Reader) ([]byte, error) { - var input interface{} + var input any if err := json.NewDecoder(reader).Decode(&input); err != nil { return nil, fmt.Errorf("json: %w", err) }