Skip to content

Commit

Permalink
fix(proto): pin googleapis when generating
Browse files Browse the repository at this point in the history
Without pinning the latest release is always selected
(value in buf.lock is ignored), which causes CI to fail
due to diff.
  • Loading branch information
ericwenn committed May 1, 2022
1 parent 23e1b35 commit 940fd7f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .sage/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ import (

type Proto sg.Namespace

const (
// Version of buf.build/googleapis/googleapis to generate from.
// Versions can be found here:
// https://buf.build/googleapis/googleapis/history
googleapisRef = "f3590c56d388417ebbedefae77ac12bf"
)

func (Proto) All(ctx context.Context) error {
sg.Deps(ctx, Proto.ClangFormatProto, Proto.BufLint)
sg.SerialDeps(ctx, Proto.BufGenerate, Proto.BufGenerateGoogleapis)
Expand Down Expand Up @@ -60,7 +67,7 @@ func (Proto) BufGenerateGoogleapis(ctx context.Context) error {
cmd := sgbuf.Command(
ctx,
"generate",
"buf.build/googleapis/googleapis",
"buf.build/googleapis/googleapis:"+googleapisRef,
"--template", "buf.gen.googleapis.yaml",
"--path", "google/area120/tables/v1alpha1",
"--path", "google/cloud/aiplatform/v1",
Expand Down

0 comments on commit 940fd7f

Please sign in to comment.