google / gnostic

A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
Apache License 2.0
2.08k stars 247 forks source link

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

Open Virensk opened 10 months ago

Virensk commented 10 months ago

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