Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Add explicit go_package names to fix protoc generation error #30

Merged
merged 1 commit into from
Feb 26, 2023

Conversation

lfittl
Copy link
Member

@lfittl lfittl commented Feb 25, 2023

This is now required by upstream's protoc compiler, and the alternative (passing an explicit -M flag to the protoc invocation) is more frustrating to implement, since it needs to be done once for each file.

See https://protobuf.dev/reference/go/go-generated/

This is now required by upstream's protoc compiler, and the alternative
(passing an explicit -M flag to the protoc invocation) is more
frustrating to implement, since it needs to be done once for each file.

See https://protobuf.dev/reference/go/go-generated/
@lfittl lfittl requested review from msakrejda and a team February 25, 2023 02:45
lfittl added a commit to pganalyze/collector that referenced this pull request Feb 25, 2023
The old module, github.com/golang/protobuf, has been deprecated a while,
and the newer API has a slightly improved interface for the timestamp
type as well, avoiding a potential error that needs to be handled (that
we've traditionally ignored anyway in our own code).

Note there is a remaining caller of the old module in Google's appengine
module, which gets vendored in unnecessarily via x/oauth2 (golang/oauth2#615).

In passing, update the protoc-gen-go tool as well to the version hosted
in the new repository.

Depends on pganalyze/collector-snapshot#30
@lfittl lfittl merged commit 1fba356 into main Feb 26, 2023
@lfittl lfittl deleted the add-go-package-name branch February 26, 2023 01:29
lfittl added a commit to pganalyze/collector that referenced this pull request Feb 28, 2023
The old module, github.com/golang/protobuf, has been deprecated a while,
and the newer API has a slightly improved interface for the timestamp
type as well, avoiding a potential error that needs to be handled (that
we've traditionally ignored anyway in our own code).

Note there is a remaining caller of the old module in Google's appengine
module, which gets vendored in unnecessarily via x/oauth2 (golang/oauth2#615).

In passing, update the protoc-gen-go tool as well to the version hosted
in the new repository.

Depends on pganalyze/collector-snapshot#30
lfittl added a commit to pganalyze/collector that referenced this pull request Feb 28, 2023
…382)

The old module, github.com/golang/protobuf, has been deprecated a while,
and the newer API has a slightly improved interface for the timestamp
type as well, avoiding a potential error that needs to be handled (that
we've traditionally ignored anyway in our own code).

Note there is a remaining caller of the old module in Google's appengine
module, which gets vendored in unnecessarily via x/oauth2 (golang/oauth2#615).

In passing, update the protoc-gen-go tool as well to the version hosted
in the new repository.

Depends on pganalyze/collector-snapshot#30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants