diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6500ca..b6c6db1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,24 +10,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + uses: actions/checkout@v4 - name: Run golangci-lint - uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3 + uses: golangci/golangci-lint-action@v3 with: - version: v1.52.2 + version: v1.55.2 test: name: go test runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4 + uses: actions/setup-go@v5 with: - go-version: 1.18 + go-version: 1.21.6 - name: Set up gotestfmt uses: GoTestTools/gotestfmt-action@v2 - - uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3 + - uses: actions/cache@v4 with: path: | ~/go/pkg/mod @@ -63,12 +63,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4 + uses: actions/setup-go@v5 with: - go-version: 1.18 - - uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3 + go-version: 1.21.6 + - uses: actions/cache@v4 with: path: | ~/go/pkg/mod diff --git a/.golangci.yml b/.golangci.yml index 2804381..2b6d007 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -77,13 +77,15 @@ linters-settings: revive: severity: error depguard: - list-type: whitelist - include-go-root: false - packages: - - go.flow.arcalot.io/ - - go.arcalot.io/ - - gopkg.in/yaml.v3 - - github.com/fxamacker/cbor + rules: + main: + list-mode: strict + allow: + - $gostd + - go.flow.arcalot.io/ + - go.arcalot.io/ + - gopkg.in/yaml.v3 + - github.com/fxamacker/cbor govet: enable-all: true check-shadowing: false diff --git a/go.mod b/go.mod index 3d69167..40e47ac 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ module go.flow.arcalot.io/pluginsdk -go 1.18 +go 1.21 require ( github.com/fxamacker/cbor/v2 v2.5.0 - go.arcalot.io/assert v1.6.0 - go.arcalot.io/log/v2 v2.0.0 + go.arcalot.io/assert v1.7.0 + go.arcalot.io/log/v2 v2.1.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 0a0ef01..b261836 100644 --- a/go.sum +++ b/go.sum @@ -2,10 +2,10 @@ github.com/fxamacker/cbor/v2 v2.5.0 h1:oHsG0V/Q6E/wqTS2O1Cozzsy69nqCiguo5Q1a1ADi github.com/fxamacker/cbor/v2 v2.5.0/go.mod h1:TA1xS00nchWmaBnEIxPSE5oHLuJBAVvqrtAnWBwBCVo= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= -go.arcalot.io/assert v1.6.0 h1:iKA8SZZ1MRblMX5QAwwY5RbpR+VNyp//4IU7vo08Xu0= -go.arcalot.io/assert v1.6.0/go.mod h1:Xy3ScX0p9IMY89gdsgexOKxnmDr0nGHG9dV7p8Uxg7w= -go.arcalot.io/log/v2 v2.0.0 h1:mbmsWDVBXZNWrDzUh5JLzeGCQ59kTuMFs+pyfJGc1hk= -go.arcalot.io/log/v2 v2.0.0/go.mod h1:1V8jnFIIGwh2CtcGkHNOmy1nCo7LbazQNkUcnKYNMn4= +go.arcalot.io/assert v1.7.0 h1:PTLyeisNMUKpM9wXRDxResanBhuGOYO1xFK3v5b3FSw= +go.arcalot.io/assert v1.7.0/go.mod h1:nNmWPoNUHFyrPkNrD2aASm5yPuAfiWdB/4X7Lw3ykHk= +go.arcalot.io/log/v2 v2.1.0 h1:lNO931hJ82LgS6WcCFCxpLWXQXPFhOkz6PyAJ/augq4= +go.arcalot.io/log/v2 v2.1.0/go.mod h1:PNWOSkkPmgS2OMlWTIlB/WqOw0yaBvDYd8ENAP80H4k= 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=