diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2021-07-27 11:31:29 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2021-07-27 11:31:29 +0300 |
commit | 0c4e61668e412772dcac68542342df47fecf2996 (patch) | |
tree | 4ae60c5abc619a9a02e4bf75e92258277572500f /.golangci.yml | |
parent | bf55b6fc1a0c9bba1e9d1af29cf4ccab168d30e0 (diff) |
lint: Fix deprecated import github.com/golang/protobuf/jsonpb
The dependency github.com/golang/protobuf is deprecated and should
be replaced with google.golang.org/protobuf.
This change replaces usage of the jsonpb package with encoding/protojson.
The packages have incompatible API that is why the code changes
were done to migrate.
The exclusion rule removed from the golanci-lint tool configuration file
to prevent future use of the deprecated package.
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/.golangci.yml b/.golangci.yml index 2e5955fa7..94d543d4f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -708,9 +708,6 @@ issues: text: "package github.com/golang/protobuf/proto is deprecated" - linters: - staticcheck - text: "package github.com/golang/protobuf/jsonpb is deprecated" - - linters: - - staticcheck text: "package github.com/golang/protobuf/ptypes is deprecated" - linters: - staticcheck |