diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml index 1c38eb4..235bfca 100644 --- a/.github/workflows/go_test.yml +++ b/.github/workflows/go_test.yml @@ -6,7 +6,7 @@ jobs: test: strategy: matrix: - go-version: [ '1.24.x', '1.25.x' ] + go-version: [ '1.25.x', '1.26.x' ] os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 4e9dd9b..3807f14 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,5 +18,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 with: - version: v2.1.6 + version: v2.11.4 args: --timeout=8m diff --git a/go.mod b/go.mod index fa10a79..aa1ce89 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/transparency-dev/formats -go 1.24.0 +go 1.25.0 require ( github.com/google/go-cmp v0.7.0 diff --git a/log/checkpoint_test.go b/log/checkpoint_test.go index 52a4e11..0549b11 100644 --- a/log/checkpoint_test.go +++ b/log/checkpoint_test.go @@ -172,7 +172,7 @@ type moonLogCheckpoint struct { func (m moonLogCheckpoint) Marshal() []byte { b := bytes.Buffer{} b.Write(m.Checkpoint.Marshal()) - b.WriteString(fmt.Sprintf("%x\n%s\n", m.Timestamp, m.Phase)) + fmt.Fprintf(&b, "%x\n%s\n", m.Timestamp, m.Phase) return b.Bytes() }