diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 908c9c4..4a4c1ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,14 +18,14 @@ jobs: - uses: actions/setup-go@v5 name: Set up Go with: - go-version: 1.21.x + go-version: 1.22.x cache: false # managed by golangci-lint - uses: golangci/golangci-lint-action@v4 name: Install golangci-lint with: version: latest - args: --version # make lint will run the linter + args: --help # make lint will run the linter - run: make lint name: Lint @@ -51,7 +51,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest"] - go: ["1.20.x", "1.21.x"] + go: ["1.21.x", "1.22.x"] steps: - name: Checkout code diff --git a/docs/go.mod b/docs/go.mod index ebf8c78..84ae766 100644 --- a/docs/go.mod +++ b/docs/go.mod @@ -8,7 +8,7 @@ require go.uber.org/cff v0.0.0-00010101000000-000000000000 require ( go.uber.org/multierr v1.11.0 // indirect - golang.org/x/mod v0.6.0 // indirect - golang.org/x/sys v0.1.0 // indirect - golang.org/x/tools v0.2.0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/sync v0.7.0 // indirect + golang.org/x/tools v0.20.0 // indirect ) diff --git a/docs/go.sum b/docs/go.sum index a192777..328e33d 100644 --- a/docs/go.sum +++ b/docs/go.sum @@ -5,10 +5,10 @@ github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKs go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -golang.org/x/mod v0.6.0 h1:b9gGHsz9/HhJ3HF5DHQytPpuwocVTChQJK3AvoLRD5I= -golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= -golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE= -golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY= +golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/internal/tests/predicate/predicate_test.go b/internal/tests/predicate/predicate_test.go index 7510b37..c496272 100644 --- a/internal/tests/predicate/predicate_test.go +++ b/internal/tests/predicate/predicate_test.go @@ -57,7 +57,7 @@ func TestPanicRecovered(t *testing.T) { assert.Equal(t, "sad times", panicError.Value, "PanicError.Value should be recovered value") stacktrace := string(panicError.Stacktrace) assert.Contains(t, stacktrace, "panic({", "panic should be included in the stack trace") - assert.Contains(t, stacktrace, ".Panicked.func", "function that panicked should be in the stack") + assert.Contains(t, stacktrace, ".Panicked", "function that panicked should be in the stack") } func TestPanicFallback(t *testing.T) {