You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to run go get inside dockerfile
RUN go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
and got this error.
src/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger/generator.go:71:9: undefined: strings.ReplaceAll
The command '/bin/sh -c go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger' returned a non-zero code: 2
The text was updated successfully, but these errors were encountered:
https://golang.org/pkg/strings/#ReplaceAll was added in go 1.12, which was only ~8 months ago, so we may want to support at least go 1.11. To fix this right now, you could try upgrading to go 1.12 or go 1.13, but I think we should make this work in 1.11.
johanbrandhorst
changed the title
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger is returning error code 2
Make protoc-gen-swagger build on 1.11
Sep 17, 2019
To expand on @johanbrandhorst, I think we would be happy to accept a patch to make the code compatible with 1.11, but the current group of maintainers is not going to write that. We only support two versions back in golang, but will accept compatibility patches into head.
Tried to run go get inside dockerfile
RUN go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
and got this error.
src/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/genswagger/generator.go:71:9: undefined: strings.ReplaceAll
The command '/bin/sh -c go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger' returned a non-zero code: 2
The text was updated successfully, but these errors were encountered: