-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(internal): stop generating Ads packages in genproto #3214
Conversation
These packages don't have a corresponding client library (in cloud.google.com/go or another module). They aren't ready for production use. So, we're going to stop generating them for now and will revisit in the future when ready. A go-genproto PR will remove the existing Ads packages. If needed, these packages can be generated locally or as part of a build process. However, we're not ready to generate and publish them automatically.
LGTM |
These packages do not have a corresponding client library that uses them and are untested with the production API. Therefore, they are not ready for production use. In the future, we will investigate the best way to generate these APIs while making sure they have a high level of reliability. If needed, you can use protoc to generate Go packages for these protos locally or during your build process. You can also pin to an older version of this module; however, you won't be able to use updates to other APIs in this module. See googleapis/google-cloud-go#3214 for the corresponding update to stop updating/generating these packages.
@@ -110,7 +123,7 @@ func regenGenproto(ctx context.Context, genprotoDir, googleapisDir, protoDir str | |||
// Run protoc on all protos of all packages. | |||
grp, _ := errgroup.WithContext(ctx) | |||
for pkg, fnames := range pkgFiles { | |||
if !strings.HasPrefix(pkg, "google.golang.org/genproto") || denylist[pkg] { | |||
if !strings.HasPrefix(pkg, "google.golang.org/genproto") || denylist[pkg] || hasPrefix(pkg, skipPrefixes) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If skipPrefixes
gets larger, it would be more efficient to preemptively remove strings that match the prefix from pkgFiles
rather than checking it everytime in this for loop. Considering the size of skipPrefixes
for now, I don't think it's a blocking optimization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree on both counts. Going for simplicity for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -110,7 +123,7 @@ func regenGenproto(ctx context.Context, genprotoDir, googleapisDir, protoDir str | |||
// Run protoc on all protos of all packages. | |||
grp, _ := errgroup.WithContext(ctx) | |||
for pkg, fnames := range pkgFiles { | |||
if !strings.HasPrefix(pkg, "google.golang.org/genproto") || denylist[pkg] { | |||
if !strings.HasPrefix(pkg, "google.golang.org/genproto") || denylist[pkg] || hasPrefix(pkg, skipPrefixes) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree on both counts. Going for simplicity for now.
These packages do not have a corresponding client library that uses them and are untested with the production API. Therefore, they are not ready for production use. In the future, we will investigate the best way to generate these APIs while making sure they have a high level of reliability. If needed, you can use protoc to generate Go packages for these protos locally or during your build process. You can also pin to an older version of this module; however, you won't be able to use updates to other APIs in this module. See googleapis/google-cloud-go#3214 for the corresponding update to stop updating/generating these packages.
These packages don't have a corresponding client library (in
cloud.google.com/go or another module). They aren't ready for production
use. So, we're going to stop generating them for now and will revisit
in the future when ready.
A go-genproto PR will remove the existing Ads packages.
If needed, these packages can be generated locally or as part of a build
process. However, we're not ready to generate and publish them
automatically.
@AnashOommen @aohren