Skip to content

Commit

Permalink
fix(cli): migrate deprecated protobug
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Dec 23, 2024
1 parent c7daf2e commit 954cddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/fatih/color v1.18.0
github.com/gammazero/workerpool v1.1.3
github.com/go-git/go-git/v5 v5.12.0
github.com/golang/protobuf v1.5.4
github.com/golang/protobuf v1.5.4 // indirect
github.com/gomarkdown/markdown v0.0.0-20241205020045-f7e15b2f3e62
github.com/google/go-cmp v0.6.0
github.com/google/go-github/v67 v67.0.0
Expand Down
4 changes: 2 additions & 2 deletions cli/scorecard/score.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (

"github.com/GoogleCloudPlatform/config-validator/pkg/api/validator"
"github.com/GoogleCloudPlatform/config-validator/pkg/gcv"
_struct "github.com/golang/protobuf/ptypes/struct"
"github.com/pkg/errors"
"google.golang.org/protobuf/types/known/structpb"
)

// ScoringConfig holds settings for generating a score
Expand Down Expand Up @@ -104,7 +104,7 @@ type RichViolation struct {
Category string // category of violation
Resource string
Message string
Metadata *_struct.Value `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
Metadata *structpb.Value `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
asset *validator.Asset `json:"-"`
}

Expand Down

0 comments on commit 954cddb

Please sign in to comment.