From 4c490179eb31cf3f996abe88693aebe90f7236bb Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Thu, 8 Feb 2024 05:04:40 -0800 Subject: [PATCH] ci: Build with Go 1.22.x - deprecate 1.19 (#926) --- .github/workflows/go.yml | 10 +++++----- .github/workflows/release.yml | 4 ++-- go.mod | 2 +- internal/fuzz/{helpers.go => fuzz.go} | 6 ++++-- 4 files changed, 12 insertions(+), 10 deletions(-) rename internal/fuzz/{helpers.go => fuzz.go} (94%) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b4a9490eab..cea374f146 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,7 +12,7 @@ jobs: build: strategy: matrix: - go-version: [1.19.x, 1.20.x, 1.21.x] + go-version: [1.20.x, 1.21.x, 1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] env: CGO_ENABLED: 0 @@ -76,7 +76,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x - name: Checkout code uses: actions/checkout@v4 @@ -116,7 +116,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x - name: Checkout code uses: actions/checkout@v4 @@ -147,7 +147,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x - name: Checkout code uses: actions/checkout@v4 @@ -187,7 +187,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 972644c45b..dc29af50e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,12 +21,12 @@ jobs: name: Set up Go uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version: 1.21.x + go-version: 1.22.x - name: Run GoReleaser uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 with: - version: 1.21.x + version: 1.24.x args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/go.mod b/go.mod index 79d702af7d..e489adfabc 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/klauspost/compress -go 1.19 +go 1.20 retract ( // https://github.com/klauspost/compress/pull/503 diff --git a/internal/fuzz/helpers.go b/internal/fuzz/fuzz.go similarity index 94% rename from internal/fuzz/helpers.go rename to internal/fuzz/fuzz.go index 7f1cc1db53..ee685b7109 100644 --- a/internal/fuzz/helpers.go +++ b/internal/fuzz/fuzz.go @@ -1,6 +1,8 @@ -//go:build go1.18 -// +build go1.18 +// Copyright (c) 2024+ Klaus Post. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. +// Package fuzz provides a way to add test cases to a testing.F instance from a zip file. package fuzz import (