Skip to content

Commit

Permalink
fix: generate googleapis from git
Browse files Browse the repository at this point in the history
Buf have removed the majority of this package from the main registry...
  • Loading branch information
ericwenn committed Sep 15, 2022
1 parent 7fc2bd1 commit d3ef363
Show file tree
Hide file tree
Showing 8 changed files with 412 additions and 60 deletions.
11 changes: 6 additions & 5 deletions .sage/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ 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"
// Version of github.com/googleapis/googleapis to generate from.
// Since there are no tags or branches to generate from in that repository,
// this will fail once more than 1_000 commits have been added in that repository
// since this commit.
googleapisRef = "0487c63ac8292e507e0f3fecb3c01efdadea4967"
)

func (Proto) All(ctx context.Context) error {
Expand Down Expand Up @@ -67,7 +68,7 @@ func (Proto) BufGenerateGoogleapis(ctx context.Context) error {
cmd := sgbuf.Command(
ctx,
"generate",
"buf.build/googleapis/googleapis:"+googleapisRef,
"https://github.com/googleapis/googleapis.git#depth=1000,ref="+googleapisRef,
"--template", "buf.gen.googleapis.yaml",
"--path", "google/area120/tables/v1alpha1",
"--path", "google/cloud/aiplatform/v1",
Expand Down
5 changes: 1 addition & 4 deletions proto/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
branch: main
commit: b7ef5e9e56c2413d9092e5ef86e5bbe3
digest: b1-QAOI4EBE1Rd27jgIjaGqN664KtSWG6Hz40x8yh8HxdU=
create_time: 2021-09-21T15:08:11.933747Z
commit: 8d7204855ec14631a499bd7393ce1970
185 changes: 185 additions & 0 deletions proto/gen/googleapis/cloud/aiplatform/v1/dataset_service_aiptest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions proto/gen/googleapis/cloud/aiplatform/v1/job_service_aiptest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d3ef363

Please sign in to comment.