-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
all: deprecate the module #1306
Conversation
Use the new deprecation feature to mark this module as deprecated. See https://golang.org/issue/40357. Considerations: * google.golang.org/protobuf/cmd/protoc-gen-go@v1.25.0 and below used to generate a hard dependency on github.com/golang/protobuf, which would be frustrating since it would force an explicit dependency on a deprecated module. However, that is no longer the case in v1.26.0. * google.golang.org/protobuf and github.com/golang/protobuf have a cyclic dependency on each other. However, this should not be a problem since proposal 40357 only marks direct dependencies in the go.mod file, rather than all transitive dependencies in the go.sum file.
\cc @jayconrod, can you verify that the deprecating |
@dsnet I'm still implementing module deprecation, and this sounds like an interesting test case to add :) Currently, the plan is to show deprecation messages in two scenarios:
Will users that depend on If this ends up being too much of a nuisance, we could restrict deprecation warnings, e.g., to direct requirements only. |
Nope. The dependency on on |
github.com/golang/protobuf is deprecated. ref. golang/protobuf#1306
…d Go module Reference: golang/protobuf#1306 This does not appear to be generating any meaningful differences. Updated via: ```console pushd tfprotov5/internal/tfplugin5 ./generate.sh popd pushd tfprotov6/internal/tfplugin6 ./generate.sh popd go mod tidy ```
…d Go module (#140) Reference: golang/protobuf#1306 This does not appear to be generating any meaningful differences. Updated via: ```console pushd tfprotov5/internal/tfplugin5 ./generate.sh popd pushd tfprotov6/internal/tfplugin6 ./generate.sh popd go mod tidy ```
The module we used previouly, github.com/golang/protobuf/proto, is deprecated. See https://github.com/golang/protobuf/releases/tag/v1.5.2 and golang/protobuf#1306. We use the official succssor: ``` (fix imports) go get google.golang.org/protobuf/proto@v1.28.1 go mod tidy ``` The .pb.go generated files also needd to be updated with an updated protoc-gen-go: ``` go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 ``` A new script was added to generate the files, as the `import_path=messages` flag seems to be removed in favour of the `M` flag, which unfortunately has to be specified for each .proto file :(
The module we used previouly, github.com/golang/protobuf/proto, is deprecated. See https://github.com/golang/protobuf/releases/tag/v1.5.2 and golang/protobuf#1306. We use the official succssor: ``` (fix imports) go get google.golang.org/protobuf/proto@v1.28.1 go mod tidy ``` The .pb.go generated files also needed to be updated with an updated protoc-gen-go: ``` go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 ``` A new script was added to generate the files, as the `import_path=messages` flag seems to be removed in favour of the `M` flag, which unfortunately has to be specified for each .proto file :(
The module we used previouly, github.com/golang/protobuf/proto, is deprecated. See https://github.com/golang/protobuf/releases/tag/v1.5.2 and golang/protobuf#1306. We use the official succssor: ``` (fix imports) go get google.golang.org/protobuf/proto@v1.28.1 go mod tidy ``` The .pb.go generated files also needed to be updated with an updated protoc-gen-go: ``` go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 ``` A new script was added to generate the files, as the `import_path=messages` flag seems to be removed in favour of the `M` flag, which unfortunately has to be specified for each .proto file :( ----------- In `BTCSign()`, the inputs are not copied anymore due to: ``` api/firmware/btc.go:300:20: cannot use &input (value of type **messages.BTCSignInputRequest) as *messages.BTCSignInputRequest value in struct literal (typecheck) BtcSignInput: &input, ```
The module we used previouly, github.com/golang/protobuf/proto, is deprecated. See https://github.com/golang/protobuf/releases/tag/v1.5.2 and golang/protobuf#1306. We use the official succssor: ``` (fix imports) go get google.golang.org/protobuf/proto@v1.28.1 go mod tidy ``` The .pb.go generated files also needed to be updated with an updated protoc-gen-go: ``` go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 ``` A new script was added to generate the files, as the `import_path=messages` flag seems to be removed in favour of the `M` flag, which unfortunately has to be specified for each .proto file :( ----------- In `BTCSign()`, the inputs are not copied anymore due to: ``` api/firmware/btc.go:300:20: cannot use &input (value of type **messages.BTCSignInputRequest) as *messages.BTCSignInputRequest value in struct literal (typecheck) BtcSignInput: &input, ```
Use the new deprecation feature to mark this module as deprecated.
See https://golang.org/issue/40357.
Considerations:
used to generate a hard dependency on github.com/golang/protobuf,
which would be frustrating since it would force an explicit dependency
on a deprecated module. However, that is no longer the case in v1.26.0.
a cyclic dependency on each other. However, this should not be a problem
since proposal 40357 only marks direct dependencies in the go.mod file,
rather than all transitive dependencies in the go.sum file.