From b67290aec2daafc971b67698b2972cf0b39d8ee2 Mon Sep 17 00:00:00 2001 From: Nicholas Wiersma Date: Sun, 11 Aug 2024 09:51:29 +0200 Subject: [PATCH] chore: bump deps (#9) --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 14 +++++++++++--- .golangci.yml | 17 +++-------------- .goreleaser.yml | 1 + go.mod | 6 +++--- go.sum | 8 ++++---- 6 files changed, 23 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c739a45..6416584 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest env: - GO_VERSION: "1.21" + GO_VERSION: "1.22" steps: - name: Install Go diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b646fb8..679cb23 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,8 +12,8 @@ jobs: env: GOOS: js GOARCH: wasm - GO_VERSION: "1.21" - GOLANGCI_LINT_VERSION: v1.55.0 + GO_VERSION: "1.22" + GOLANGCI_LINT_VERSION: v1.59.1 steps: - name: Install Go @@ -37,4 +37,12 @@ jobs: uses: golangci/golangci-lint-action@v6 with: version: ${{ env.GOLANGCI_LINT_VERSION }} - skip-pkg-cache: true + skip-cache: true + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + version: latest + args: release --clean --snapshot + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.golangci.yml b/.golangci.yml index af23fde..2114441 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,21 +10,10 @@ linters: enable-all: true disable: - interfacebloat - - sqlclosecheck # not relevant (SQL) - - rowserrcheck # not relevant (SQL) - - execinquery # not relevant (SQL) - - interfacer # deprecated - - scopelint # deprecated - - maligned # deprecated - - golint # deprecated - - deadcode # deprecated - - exhaustivestruct # deprecated - - ifshort # deprecated - - nosnakecase # deprecated - - structcheck # deprecated - - varcheck # deprecated - cyclop # duplicate of gocyclo + - execinquery # deprecated - depguard + - err113 - exhaustive - exhaustruct - forcetypeassert @@ -33,9 +22,9 @@ linters: - gochecknoinits - gocognit - gocyclo - - goerr113 - gomnd - ireturn + - mnd - nestif - nlreturn - nonamedreturns diff --git a/.goreleaser.yml b/.goreleaser.yml index 840f085..339c10b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 project_name: clock dist: dist diff --git a/go.mod b/go.mod index 063d7b5..4bbade7 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/glasslabs/clock -go 1.21.3 +go 1.22 -require github.com/glasslabs/client-go v0.1.0 +require github.com/glasslabs/client-go v0.2.0 require ( gopkg.in/yaml.v3 v3.0.1 // indirect - honnef.co/go/js/dom/v2 v2.0.0-20230808055721-96db8f4d5e3b // indirect + honnef.co/go/js/dom/v2 v2.0.0-20231112215516-51f43a291193 // indirect ) diff --git a/go.sum b/go.sum index ceb0ac2..04f8022 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ -github.com/glasslabs/client-go v0.1.0 h1:a2Ob6EMyglz+Jy53diQv62ZCBVA4/BONF3e2APcnlr0= -github.com/glasslabs/client-go v0.1.0/go.mod h1:CpO4gMLfNrbhZQsNlNjq1KcGUAk35eCWj35YBb2xccw= +github.com/glasslabs/client-go v0.2.0 h1:n1w7pC3I3t7Lru1yJbmuhIjuPCprefhAF1V2jjvq/Bs= +github.com/glasslabs/client-go v0.2.0/go.mod h1:IyhCNLlDg7KolU1WRHGXbfTbT0zLvxtrefoQlby+p9U= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/js/dom/v2 v2.0.0-20230808055721-96db8f4d5e3b h1:XOEHdukvK2DAtBpN8kQbuj6UIK5dz9DLvqc51o6w4L0= -honnef.co/go/js/dom/v2 v2.0.0-20230808055721-96db8f4d5e3b/go.mod h1:+JtEcbinwR4znM12aluJ3WjKgvhDPKPQ8hnP4YM+4jI= +honnef.co/go/js/dom/v2 v2.0.0-20231112215516-51f43a291193 h1:qc3CbLs/1Tb3N7yIKKph/UbUoyI8YQfTF1apIvqX/I8= +honnef.co/go/js/dom/v2 v2.0.0-20231112215516-51f43a291193/go.mod h1:+JtEcbinwR4znM12aluJ3WjKgvhDPKPQ8hnP4YM+4jI=