Skip to content

api: sync using package statement#9373

Closed
lizan wants to merge 3 commits intoenvoyproxy:masterfrom
lizan:proto_sync_fix
Closed

api: sync using package statement#9373
lizan wants to merge 3 commits intoenvoyproxy:masterfrom
lizan:proto_sync_fix

Conversation

@lizan
Copy link
Member

@lizan lizan commented Dec 17, 2019

Signed-off-by: Lizan Zhou lizan@tetrate.io

Description:
This makes proto_sync.py less aware of handling version upgrade. Also helps package moving (coming next).

Risk Level: Low
Testing:
Docs Changes:
Release Notes:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
htuch
htuch previously approved these changes Dec 17, 2019
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Neat!

contents of source when run in fix mode.

def GetDestinationPath(src):
"""Obtain destination path from a proto file path by reading its package statement.
Copy link
Member

Choose a reason for hiding this comment

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

Much cleaner, thanks.

@htuch
Copy link
Member

htuch commented Dec 17, 2019

@lizan see format fail on CI.

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@htuch
Copy link
Member

htuch commented Dec 18, 2019

Closed in favor of #9382

@htuch htuch closed this Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants