Open Icarus9913 opened 1 week ago
We should change the linter to disallow new usages of github.com/golang
so that any newer usage uses comment based exception.
This will force anyone that wants to use this package again to have to think twice before doing it.
@lahabana How about the new changes?
// nolint: depguard
// nolint: depguard
~However, in this way anyone who wants to use json*
whichever they choosem, they have to add // nolint: depguard
~
OK, everyone would have a note what happened for the json* SDK and be more careful
LGTM intuitively for the lint rules. I'm not sure I'm grasping everything with the code change so not approving.
Motivation
The repo
github.com/golang/protobuf
is deprecated and we should switch to usegoogle.golang.org/protobuf
.However we can't totally get rid of it because we still need the
github.com/golang/protobuf/jsonpb
and there's a incompatibility forgoogle.golang.org/protobuf/encoding/protojson
. So, I add one golangci linter to warn it.Implementation information
Supporting documentation
Fix #3499