Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure import list is ordered #312

Merged
merged 1 commit into from
May 18, 2021

Conversation

rayjcwu
Copy link
Contributor

@rayjcwu rayjcwu commented May 10, 2021

Issue #, if available:

#298

Description of changes:

Before writing out package names, append them to a slice and sort them.
This keeps the import list remaining in the same order. Otherwise, the generated protobuf *.go files may change even though *.proto is the same, which causes trouble in our CI environment.

I'm having trouble coming up with a test for this change. Any example I could look at?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@marioizquierdo marioizquierdo merged commit ff45a2a into twitchtv:master May 18, 2021
@marioizquierdo
Copy link
Contributor

Merged in master. Will tag along with next release soon. Thanks!

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