Skip to content

Commit

Permalink
Merge pull request #1033 from zchee/remove-pkg-errors-deps
Browse files Browse the repository at this point in the history
all: remove github.com/pkg/errors dependency
  • Loading branch information
kanata2 authored Feb 13, 2022
2 parents 1bc0bcc + 86cef73 commit bbab81d
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 611 deletions.
3 changes: 1 addition & 2 deletions block_conv.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ package slack

import (
"encoding/json"
"errors"
"fmt"

"github.com/pkg/errors"
)

type sumtype struct {
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
module github.com/slack-go/slack

go 1.16

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-test/deep v1.0.4
github.com/gorilla/websocket v1.4.2
github.com/pkg/errors v0.8.0
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/testify v1.2.2
)

go 1.16
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ github.com/go-test/deep v1.0.4 h1:u2CU3YKy9I2pmu9pX0eq50wCgjfGIt539SqR7FbHiho=
github.com/go-test/deep v1.0.4/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
Expand Down
3 changes: 1 addition & 2 deletions socketmode/socketmode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ package socketmode
import (
"bytes"
"encoding/json"
"errors"
"reflect"
"testing"

"github.com/slack-go/slack/slackevents"

"github.com/pkg/errors"
)

const (
Expand Down
24 changes: 0 additions & 24 deletions vendor/github.com/pkg/errors/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/github.com/pkg/errors/.travis.yml

This file was deleted.

23 changes: 0 additions & 23 deletions vendor/github.com/pkg/errors/LICENSE

This file was deleted.

52 changes: 0 additions & 52 deletions vendor/github.com/pkg/errors/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions vendor/github.com/pkg/errors/appveyor.yml

This file was deleted.

Loading

0 comments on commit bbab81d

Please sign in to comment.