Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

update to grpc-gateway v2 #223

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

drewwells
Copy link

gRPC Gateway went through a major rewrite to v2 last year. The main impact that I see on this repo is the protobuf annotation changes from swagger to openapiv2 and of course the protoc plugin was renamed as well. I'll take care of those in this PR.

Ref: https://grpc-ecosystem.github.io/grpc-gateway/docs/development/grpc-gateway_v2_migration_guide/

@jsuereth
Copy link

jsuereth commented May 4, 2021

Thanks for looking at this!

@jsuereth jsuereth self-requested a review May 4, 2021 19:52
@jsuereth jsuereth self-assigned this May 4, 2021
@drewwells drewwells marked this pull request as ready for review May 4, 2021 21:54
@@ -28,12 +28,13 @@ get() {
local url="$1"
local dest="$2"

if [[ -w $dest ]]
if [[ ! -w $(dirname $dest) ]]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had issues with this line calculating sudo correctly. I believe -w only evaluates valid paths. Since the destination does not exist, this always returned false. The result was sudo wget laid down a file as root:root and chmod below ran without sudo and was unable to change the file bits.

@bogdandrutu
Copy link
Contributor

@jsuereth you can close this, already done. See also #228

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.

3 participants