google / google/gnostic

Cannot build due to deprecated go module github.com/golang/protobuf

Open
#422 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

Syncing to version 0.70 with the latest go/protoc and then building, fails.

```
gnostic % make
go generate ./...
go get ./...
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
go install ./...
cd extensions/sample; make
generate-gnostic --extension x-sampleone.json --out_dir=generated
make[1]: generate-gnostic: No such file or directory
make[1]: *** [build] Error 1
make: *** [all] Error 2
```

Replacing the deprecated module with the suggested replacement causes cascades of errors subsequent builds. Please advise if there are versions that work. Versions I tried with:

```
gnostic % go version
go version go1.21.4 darwin/arm64
gnostic % protoc --version
libprotoc 25.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.