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

Migrate generation, linting to buf #1971

Merged
merged 6 commits into from
Feb 18, 2021
Merged

Migrate generation, linting to buf #1971

merged 6 commits into from
Feb 18, 2021

Conversation

johanbrandhorst
Copy link
Collaborator

@johanbrandhorst johanbrandhorst commented Feb 13, 2021

Migrate to buf for generation, linting and breaking change detection. Removes much of the complicated Makefile logic and the need for protoc in favour of buf generate.

Adds a CI step to push new versions to the BSR.

@google-cla google-cla bot added the cla: yes label Feb 13, 2021
@johanbrandhorst johanbrandhorst marked this pull request as draft February 13, 2021 22:12
@johanbrandhorst johanbrandhorst force-pushed the add-buf-yaml branch 7 times, most recently from ce31064 to 483bbd3 Compare February 14, 2021 16:10
RUN wget https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip \
-O /protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
unzip /protoc-${PROTOC_VERSION}-linux-x86_64.zip -d /usr/local/ && \
rm -f /protoc-${PROTOC_VERSION}-linux-x86_64.zip
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🎉. This change isn't effective as of this PR, it will be the next time we push the docker image.

@codecov-io
Copy link

codecov-io commented Feb 14, 2021

Codecov Report

Merging #1971 (b6abc29) into master (cc01a28) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1971   +/-   ##
=======================================
  Coverage   58.09%   58.09%           
=======================================
  Files          34       34           
  Lines        3780     3780           
=======================================
  Hits         2196     2196           
  Misses       1313     1313           
  Partials      271      271           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc01a28...b6abc29. Read the comment docs.

@johanbrandhorst johanbrandhorst force-pushed the add-buf-yaml branch 2 times, most recently from a8f2d69 to c1fa40a Compare February 14, 2021 16:30
@johanbrandhorst johanbrandhorst marked this pull request as ready for review February 14, 2021 16:31
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@johanbrandhorst johanbrandhorst force-pushed the add-buf-yaml branch 2 times, most recently from 42d135c to 2d17900 Compare February 15, 2021 09:45
Copy link
Collaborator

@adambabik adambabik left a comment

Choose a reason for hiding this comment

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

I tried to verify all changes in README and other files. Everything worked as expected!

Migrate to buf for generation, linting and breaking
change detection. Removes much of the complicated
Makefile logic and the need for protoc
in favour of buf generate.
This is no longer needed since we can depend
on googleapis from the BSR
The generated, hidden bazel directory will
mess up buf's generation if it exists, so we ignore it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants